Question: Write the SQL queries that accomplish the following tasks in the HAFH Realty Company Property Management Database: a. Display the SMemberID and SMemberName for all
a. Display the SMemberID and SMemberName for all staff members.
b. Display the CCID, CCName, and CCIndustry for all corporate clients.
c. Display the BuildingID, BNoOfFloors, and the manager’s MFName and MLName for all buildings.
d. Display the MFName, MLName, MSalary, MBDate, and number of buildings that the manager manages for all managers with a salary less than $55,000.
e. Display the BuildingID and AptNo, for all apartments leased by the corporate client WindyCT.
f. Display the InsID and InsName for all inspectors whose next inspection is scheduled after 1-JAN-2014. Do not display the same information more than once.
g. Display the SMemberID and SMemberName of staff members cleaning apartments rented by corporate clients whose corporate location is Chicago. Do not display the same information more than once.
h. Display the CCName of the client and the CCName of the client who referred it, for every client referred by a client in the music industry.
i. Display the BuildingID, AptNo, and ANoOfBedrooms for all apartments that are not leased.
Step by Step Solution
3.44 Rating (163 Votes )
There are 3 Steps involved in it
a SELECT FROM staffmember SMEMBERID SMEMBERNAME 5432 Brian 9876 Boris 7652 Caroline b SELECT ccid ccname ccindustry FROM corpclient CCID CCNAME CCINDU... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
623-CS-DB (1148).docx
120 KBs Word File
