From: | si <s(at)remail(dot)net> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | ambiguous |
Date: | 2001-03-07 15:33:19 |
Message-ID: | 20010307153319.324DA274D@sitemail.everyone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
If I assign the same name to 2 columns in 2 different tables:
+--------------------------------------+
| DEPARTMENT |
+----------+----------------+----------+
| LOCATION | DESCRIPTION | DEPT_NO |
+----------+----------------+----------+
| Bedrock | Administration | 1 |
+----------+----------------+----------+
+--------------------------------+
| EMPLOYEE |
+---------+------------+---------+
| EMPL_ID | NAME_LAST | DEPT_NO |
+---------+------------+---------+
| 1 | Slate | 1 |
+---------+------------+---------+
select * from DEPARTMENT, Employee where dept_no = '1';
PG throws up:
ERROR: Column 'dept_no' is ambiguous
Is this not allowed? or is my sql understanding wrong?
_____________________________________________________________
Pick up your email anywhere in the world ---> http://www.remail.net
From | Date | Subject | |
---|---|---|---|
Next Message | Tamsin | 2001-03-07 15:46:15 | RE: ambiguous |
Previous Message | Dax Duskin | 2001-03-07 15:07:40 |