Computer Science: An Overview: Global Edition (12th Edition)

Published by Pearson Higher Education
ISBN 10: 1292061162
ISBN 13: 978-1-29206-116-0

Chapter 9 - Database Systems - Chapter Review Problems - Page 452: 15

Answer

See explanation

Work Step by Step

a. Obtain the name of an employee whose Job ID is S25X. TEMP1 ← SELECT from ASSIGNMENT where ASSIGNMENT.JobId = “S25X” TEMP2 ← PROJECT EmplId from TEMP1 TEMP3 ← JOIN TEMP2 and EMPLOYEE where EMPLOYEE.EmplId = TEMP2.EmplId RESULT ← PROJECT Name from TEMP3. b. Obtain a list of the department, skill code and job title of the employee named G. Jerry Smith. TEMP1 ← SELECT from EMPLOYEE where EMPLOYEE.Name = “G. Jerry Smith” TEMP2 ← PROJECT EmplId from TEMP1 TEMP3 ← JOIN TEMP2 and ASSIGNMENT where ASSIGNMENT.EmplId = TEMP2.EmplId TEMP4 ← PROJECT JobId from TEMP3 TEMP5 ← JOIN TEMP4 and JOB where JOB.JobId = TEMP4.JobId RESULT ← PROJECT Department, SkillCode and JobTitle from TEMP5. c. Obtain a list of the name and address of the employee whose start date is 5-1-2010. TEMP1 ← SELECT from ASSIGNMENT where ASSIGNMENT.StartDate = “5-1-2010” TEMP2 ← PROJECT EmplId from TEMP1 TEMP3 ← JOIN TEMP2 and EMPLOYEE where EMPLOYEE.EmplId = TEMP2.EmplId RESULT ← PROJECT Name, Address from TEMP3.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.