$20
Write 10 separate SQL queries, named “Query11” through “Query20”. Put them in the same Access file you used to submit your first assignment. Each query will contain a SQL statement that is your solution for the translation of a “plain English” request. Each query is worth one point. The 10 “plain English” queries are:
11. Display all the columns in Customer for those that have one or more rows in Purchaser. (In other words, customers that have bought at least one vehicle.) Your overall strategy must be a subquery connected by an “IN”.
12. Display all the columns in Customer for those that have one or more rows in Purchaser. (In other words, customers that have bought at least one vehicle.)
Your overall strategy must be a subquery connected by an “EXISTS”.
13. Display all the columns in Customer for those that have one or more rows in Purchaser. (In other words, customers that have bought at least one vehicle.) Your overall strategy must be a join.
Your solution can not contain any subqueries.
Note that the sequence of the output rows for Query 11, 12, and 13 may be different, but the overall data values returned must be identical.
14. Union together all 4 dealership code columns: dcode, edcode, vdcode, and rdcode.
15. Display all the columns in Invoice for those invoices that have an iprice that is at least $25,000 but not more than $40,000. Use BETWEEN in your solution.
16. Display vyear, row count, minimum weight, maximum weight, average weight, and total weight for each unique vyear value. Use just the Vehicle table.
17. Count the number of different (i.e., unique) values of ieid in Invoice.
18. Display vdcode for those dealerships that have less than 5 vehicles. Use just the Vehicle table.
19. For each employee, display its count of rows in Invoice followed by all its columns in Employee. Include zero counts. Do not use UNION in your solution.
20. Display the cid and clast columns in Customer for those customers that do not have a value for czip.