Re: [SQL] How do I extract ONE particular field, when multiple table contain the same field name?

2001-09-14 Thread Christof Glaser
On Wednesday, 12. September 2001 11:06, Olle Wijk wrote: > Hi, > > I am pretty new att using SQL-quires, could anyone help me with this > one: > > I want to do the following SQL-query: > > Select XID, DENOM, PRICE, FRT, CTID From XItem xi, Category c Where > xi.System=1 and xi.Category=c.Index > >

Re: [SQL] How do I extract ONE particular field, when multiple table contain the same field name?

2001-09-14 Thread Jeff Eckermann
You need to qualify "DENOM" with the table name: just write "xi.DENOM". I find this to be good general practice when selecting from more than one table. - Original Message - From: "Olle Wijk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 12, 2001 4:06 AM Subject:

Re: [SQL] How do I extract ONE particular field, when multiple table contain the same field name?

2001-09-14 Thread Yoann
[EMAIL PROTECTED] (Olle Wijk) wrote in message news:<[EMAIL PROTECTED]>... > Hi, > > I am pretty new att using SQL-quires, could anyone help me with this > one: > > I want to do the following SQL-query: > > Select XID, DENOM, PRICE, FRT, CTID From XItem xi, Category c Where > xi.System=1 and x

[SQL] How do I extract ONE particular field, when multiple table contain the same field name?

2001-09-14 Thread Olle Wijk
Hi, I am pretty new att using SQL-quires, could anyone help me with this one: I want to do the following SQL-query: Select XID, DENOM, PRICE, FRT, CTID From XItem xi, Category c Where xi.System=1 and xi.Category=c.Index the problem is that the field 'DENOM' is present in both table 'XItem' and

Re: [SQL] How do I extract ONE particular field, when multiple table contain

2001-09-12 Thread Arne Weiner
If you refere to more than one table in a query, you have to specify which column to which table belongs. So your query must be Select XID, xi.DENOM, PRICE, FRT, CTID From XItem xi, Category c Where xi.System=1 and xi.Category=c.Index Arne. Olle Wijk wrote: > > Hi, > > I am pretty new att