Question: Answer the following questions by writing an appropriate SQL query using the COMPANY database. The database schema consists of the following tables EMPLOYEE (fname, minit,
Answer the following questions by writing an appropriate SQL query using the COMPANY database. The database schema consists of the following tables EMPLOYEE (fname, minit, Iname, ssn, birthdate, address, sex, salary, superssn, dno) DEPARTMENT (dname, dnumber, mgrssn, mgrstartdate) PROJECT (pname, pnumber, plocation, dnum) WORKS_ON (essn.pno, hours) DEPENDENT (essn, dependent-name, sex, bdate, relationship) KEY: san KEY:dnumber. KEY: pnumber KEY: (essn.pno) KEY: lossn, dependent-name) 6. List First Name, Last Name, SSN of each Employee with his/her Supervisor's First, Last Name and SSN together. Note that the Supervisor relationship is in Employee table. It is different from the Manager relationship in Department table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
