ICSI410 Assignment 2 Solved

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

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:

  1. 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”.
  2. 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”.

  1. 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.

  1. Union together all 4 dealership code columns: dcode, edcode, vdcode, and rdcode.
  2. 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.
  3. Display vyear, row count, minimum weight, maximum weight, average weight, and total weight for each unique vyear value. Use just the Vehicle table.
  4. Count the number of different (i.e., unique) values of ieid in Invoice.
  5. Display vdcode for those dealerships that have less than 5 vehicles. Use just the Vehicle table.
  6. 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.
  7. Display the cid and clast columns in Customer for those customers that do not have a value for czip.

The rules for assignment #1 are still in effect for this assignment. Be sure to re-read them

  • Asg2-w9orxo.zip