There should be four tables: HOUSE, HEATINGUNIT, TECHNICIAN, and SERVICE. The attributes of each table are also given, but you will need to make up the data. Create queries for the below questions:
Shown as example above - do not need to include it.
Create a query that will list all technician names, employee numbers, and title in order by employee number (highest to lowest).
The types of heating units (UnitType) included in the table, HEATINGUNIT, should be a combination of gas, electric, solar, and hybrid, each with a capacity from 2000 up to 5000, and have a variety of manufacturers (Manufactory). (Remember, you are making up the exact data.) Create a query that will show the ID, type, manufacturer, and capacity of all the heating units. List them in order by manufacturer and then by capacity within each manufacturer, order them by capacity from largest to smallest.
In the table SERVICE there is an EmployeeNumber attribute. This number is a secondary key in the SERVICE table but is a primary key in the TECHNICIAN table. Create a query that shows a list of service types, the date (can be just the year) the service was performed, and the name and employee number of the technician that performed the service. Order by employee name and then within each employee, by date, most recent first.
Create a query that uses both a wildcard character and an aggregate function.
In the HOUSE table there is an Insurance attribute. This would be either a 'yes' or no entry. In the HEATINGUNIT table there is a DateOfBuilt attribute, you can format this as the year only, for example 2021. Create a query that shows all the house addresses that have no insurance, (please label the column as 'No Insurance'), the unit type, and the DateOfBuilt for the unit. Order the list by DateOfBuilt, from oldest to newest.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.