0% found this document useful (0 votes)
11 views2 pages

Lecture 04

Uploaded by

Irfan Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Lecture 04

Uploaded by

Irfan Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Query 03

SELECT e.last_name,d.department_name,l.location_id,l.city

FROM employees e,departments d,locations l

WHERE e.department_id = d.department_id and d.location_id = l.location_id

and e.commission_pct is not null;

Query no 4

select e.last_name,d.department_name

from employees e,departments d

where last_name like '%a';

query 05

query 06

select e.last_name employee ,e.employee_id "#EMP",w.last_name manager ,w.manager_id "#MN"

from employees e, employees w

where w.manager_id=e.employee_id

QUERY 08

SELECT e.department_id department , e.last_name employee,c.last_name collegues

FROM employees e, employees c

WHERE e.department_id=c.department_id

ORDER BY E. DEPARTMENT_ID;
Query no 09

SELECT e.last_name,e.job_id,d.department_name,e.salary

from employees e, departments d

where e.department_id=d.department_id

query no 10

select last_name,hire_date

from employees

where last_name>'Davios'

You might also like