Advertisement
mdan396

Oracle 31.10.2014

Oct 31st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. select first_name nume, department_name departament, city oras , country_name tara, region_name regiune
  2. from employees join departments using (department_id) join locations using (location_id) join countries using (country_id)
  3. join regions using (region_id) order by 2
  4.  
  5. select first_name nume, department_name departament, city oras , country_name tara, region_name regiune
  6. from employees e,departments d,locations l,countries c,regions r
  7. where e.department_id=d.department_id and d.location_id=l.location_id and l.country_id=c.country_id and c.region_id=r.region_id order by 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement