Professional Documents
Culture Documents
BAB NAMA NIM ASISTEN : VII. MENAMPILKAN DATA DARI BANYAK TABEL : NI KETUT NOVIA NILASARI : 105060801111003 : ISMI JUNITA R.
1. select hr.employees.employee_id, hr.employees.last_name, hr.employees.department_id, hr.departments.department_id, hr.departments.location_id from hr.employees, hr.departments where hr.employees.department_id=hr.departments.department_id;
3. select worker.last_name||' works for '||manager.last_name from hr.employees worker, hr.employees manager where worker.manager_id = manager.employee_id;
3. select e.first_name, e.last_name, d.department_name from hr.employees e, hr.departments d where e.department_id=d.department_id and d.department_name='IT';
4. select e.first_name as "NIM=1003", l.street_address from hr.employees e, hr.departments d, hr.locations l where e.department_id=d.department_id and d.location_id=l.location_id and l.country_id='US';
5. select distinct e.first_name as "NIM=1003", d.department_id, l.city from hr.employees e, hr.departments d, hr.locations l where e.department_id=d.department_id and d.location_id=l.location_id and d.department_id=30;