Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Need To Dummy-Down Oracle

Re: Need To Dummy-Down Oracle

From: Lisa Shufflebarger <lshuff_at_gibralter.com>
Date: Tue, 22 Dec 1998 17:37:24 -0500
Message-ID: <36801F24.8B8A848B@gibralter.com>


Yes, that's right... you'll get an "ambiguous column name" error if you try to run the first query (select emp_id, first_name.....) because you must specify from which table or view you are selecting the emp_id.

Barbara Kennedy wrote:

> Ahh... the following query will give you a problem
> select emp_id,first name, city from employee, address where
> employee.emp_id=address.emp_id;
> this won't
> select e.emp_id,first name, city from employee e, address a where
> e.emp_id=a.emp_id;
> or
> select employee.emp_id,first name, city from employee, address where
> employee.emp_id=address.emp_id;
> Jim
>
> Doug Stone wrote in message ...
> >
> >Barbara Kennedy wrote in message ...
> >>Not sure I understand what you mean. You can have a table called employee
> >>with a column called emp_id and you can have another table called address
> >>which also has a column called emp_id. Not an unusual thing at all. If
> >>Powerbuilder does not like that (I am not real familiar with Powerbuilder)
> >>you should be able to build a view of one of the tables and rename the
> >>column in the view:
> >
> >Barbara, thanks for the feedback. I may be wrong, but when I was forward
> >engineering our SQLA db to Oracle, Oracle issued many error msgs. One
> group
> >of error msgs dealt with identically named columns. It seemed that
> whenever
> >the db had a column name that appeared in more than one table, but the two
> >columns were not linked with RI constraints, Oracle complained. I've now
> >refocused on another part of the project, so I won't be able to verify my
> >belief for another week.
> >
> >
> >
> >
Received on Tue Dec 22 1998 - 16:37:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US