Question: Teradata Viewpoint gives you access to the HAFH database used in Exercise 5 . 2 of your textbook. The full information of the database (
Teradata Viewpoint gives you access to the HAFH database used in Exercise of your textbook. The full information of the database tables and columns can be found in figure c of your book, refer to that image when you are completing the exercise. In this exercise you will only use the hafh database. To access the databae you will need the following statement: dbjukicedhafh
Complete Exercise numbers each worth points Take a screenshot of each query statement and results and paste the image into the same Word document used in Part I. Make sure images are legible and that you number each item carefully. If you do what I did and run several queries at once be sure to take a screenshot of each query.E Display all the records in the table STAFFMEMBER.
E Display the BuildingID and number of floors in the building for all buildings.
E Display the CCID, CCName, and CCIndustry for all corporate clients, sorted alphabetically by CCName.
E Display all the records in the table STAFFMEMBER for staff members whose Member Name begins with a letter B
E Display the BuildingID, AptNo, and ANoOfBedrooms for all apartments that have more than one bedroom.
E Display the answer to the following question: How many HAH buildings have exactly floors?
E Display the total amount HAH spends on manager salaries as TotalSalary and the total amount HAH spends on manager bonuses as TotalBonus
E Display the ManagerID, MFName, MLName, MSalary, and MBonus, for all managers with a salary greater than
$ and a bonus greater than $
E Display the BuildingID, BNoOfFloors, and the manager's MFName and MLName for all buildings.
E Display the MFName, MLName, MSalary, MBdate, and number of buildings that the manager manages for all managers with a salary less than $
E Display the BuildingID and AptNo for all apartments leased by the corporate client WindyCT.
E Display the InsID and InsName for all inspectors that have any inspections scheduled after APR Do not display the same information more than once.
E Display the ManagerID, MFName, MLName, and MSalary, for all managers with a salary greater than the average manager's salary.
E Display the ManagerID, MFName, MLName, and the number of buildings managed, for all managers.
E Display the ManagerID, MFName, MLName, and number of buildings managed, for all managers that manage more than one building.
E Display the SMemberID, SMemberName, and the number of apartments that the staff members cleans, for all staff members,
E Display the SMemberlD 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
E Display the CCName of the client and the CCName of the client who referred him or her, for every client referred by a client in the Music industry.
E Display the BuildingID, AptNo, and ANoOfBedrooms for all apartments that are not leased.
E Display the ManagerID, MFName, MLName, MSalary, and MBonus, for the manager with the lowest total compensation total compensation is defined as the salary plus bonus
im so lost where do i start im using terra veiwpoint
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
