Professional Documents
Culture Documents
More SQL:
Complex Queries
and Views
View: WORKS_ON1(Fname,Lname,Pname,Hours)
DEPT_INFO(Dept_name,No_of_emps,Total_sal)
Query: Retrieve the first name and last name of all
employees who work on the ‘ProductX’ project.
SELECT Fname, Lname
FROM WORKS_ON1
WHERE Pname = ‘ProductX’;