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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -