Nee, je kunt niet zomaar ON
vervangen met USING
. Maar u kunt de query herschrijven zodat deze USING
. bevat clausule in joins. Zie de juiste syntaxis hieronder:
select e.employee_id,
e.last_name,
department_id, --Note there is no table prefix
d.department_name,
l.city,
location_id --Note there is no table prefix
from employees e
join departments d
using (department_id)
join locations l
using (location_id)
where e.manager_id = 149;