Tutorial 3: Maintaining and Querying a Database Annotated Solutions

Tutorial 3: Maintaining and Querying a Database
Annotated Solutions
Review Assignments
In the Company table, the Address,
Phone, First Name, and Last Name
for Company ID MID312 have been
changed as shown
In the Product table, the record for
ProductID 5318 has been deleted
T3 Review Page 1 of 7
The ContactList query includes the
Company, ContactFirst, ContactLast,
Phone, and InitialContact fields, in
that order, from the Company table
The ContactList query is sorted in
ascending order on the Company field
The ContactList query datasheet uses
the Theme Color named Tan,
Background 2, Darker 10%
In the ContactList query
datasheet, the Phone value has
been changed to 616-456-1783
for the Genesis Garden Center
T3 Review Page 2 of 7
The HollandCompanies query
includes the Company and City fields
from the Company table and the
ProductType, Price, Unit, and
Discount fields from the Product table
The HollandCompanies query is
sorted in descending order by Price
In the HollandCompanies query, only
the records with “Holland” in the City
field are shown, but it does not
display the City field in the query
results
The HighPricesNoDiscount query
includes the ProductID, ProductType,
Price, Unit, and Weight fields
The HighPricesNoDiscount query
lists only products that cost more than
$5000 and are not eligible for a
discount, but does not display the
Discount field
T3 Review Page 3 of 7
The GrandRapidsOrLowPrices query
includes the Company, City,
ContactFirst, and ContactLast fields
from the Company table, and the
ProductType, Price, and Discount
fields from the Product table
The GrandRapidsOrLowPrices query displays
records in which Grand Rapids is the City field
value or for products that cost less than $1000
T3 Review Page 4 of 7
The PricesWithDiscountAmounts
query includes the ProductID,
ProductType, and Price fields from
the Product table and a calculated field
named Discount Amt and is sorted in
descending order by Price
The PricesWithDiscountAmounts lists only those products eligible
for a discount, with a 5% discount amount based on current price
The columns in the
PricesWithDiscountAmounts
query have been resized to
their best fit
The Discount Amt field in the
PricesWithDiscountAmounts query uses the
Standard format and two decimal places
T3 Review Page 5 of 7
The columns in the
PriceStatistics query have been
resized to their best fit
The PriceStatistics query calculates
the lowest, highest and average prices
for all products and uses field names
Lowest Price, Highest Price, and
Average Price, respectively
T3 Review Page 6 of 7
The PriceStatisticsByCompany query
includes the same fields and
calculations as in the PriceStatistics
query, but is grouped by the
Company field, which appears first
T3 Review Page 7 of 7