sql - Join query in oracle 10g -


i have written query display last name, department number, , department name employees work in toronto.

select last_name, job_id, department_id, department_name employees e  join departments d on d.department_id=e.department_id  join locations l on d.location_id=l.location_id , l.city='toronto'; 

i getting error ora-00918: column ambiguously defined

change first line to:

select e.last_name, e.job_id, e.department_id, d.department_name 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -