Chapter Two – Introduction to Structured Query Language
Page 2-118
O. Show the LastName, FirstName, and Phone of all customers who have had an order
with Total greater than $100.00. Use a join using JOIN ON syntax. Present results
sorted by LastName in ascending order and then FirstName in descending order.
Solutions to The Queen Anne Curiosity Shop questions are contained in the Microsoft Access
ORDER BY LastName, FirstName DESC;
Note that for Microsoft Access, we must use the INNER JOIN syntax:
SELECT DISTINCT LastName, FirstName, Phone
FROM CUSTOMER INNER JOIN SALE
P. Show the LastName, FirstName, and Phone of all customers who who have bought an
Item named ‘Desk Lamp’. Use a subquery. Present results sorted by LastName in
ascending order and then FirstName in descending order.
Solutions to The Queen Anne Curiosity Shop questions are contained in the Microsoft Access
database DBP-e15–IM–CH02-QACS.accdb and in corresponding files for SQL Server, Oracle