0% found this document useful (0 votes)
4 views

Assignment 4 - SQL 2-canvas

The document outlines an SQL assignment involving various queries using Teradata SQL Assistant on the db_pvfc11_big database. It includes tasks such as listing product lines with average prices, detailing items ordered, identifying states without salespeople, displaying customer orders, and counting employees supervised by each supervisor. Each task specifies the necessary tables to be used for the queries.

Uploaded by

wflesher3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 4 - SQL 2-canvas

The document outlines an SQL assignment involving various queries using Teradata SQL Assistant on the db_pvfc11_big database. It includes tasks such as listing product lines with average prices, detailing items ordered, identifying states without salespeople, displaying customer orders, and counting employees supervised by each supervisor. Each task specifies the necessary tables to be used for the queries.

Uploaded by

wflesher3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 4 – SQL (Joining Tables)

Using Teradata SQL Assistant


Database: db_pvfc11_big

1. List the names the number of products, and the average product price of each product line
whose average price is greater than $200.
Tables Needed: Productline_T; Product_T

2. List each item ordered for order number 1, its standard price, and the total price for each item
ordered.
Tables Needed: Product_T; OrderLine_T

3. Display the names of the states in which customers reside but for which there is no
salesperson residing in the state. Use the set command UNION, INTERSET, or MINUS in your
query.
Tables Needed: Customer_T; Salesperson_T

4. Display the customer ID, name, and order ID for all customer orders. For those customers
who do not have any orders, include them in the display once.
Tables Needed: Customer_T; Order_T

5. List the names and number of employees supervised (label this value as HeadCount) for
each supervisor who supervises more than two employees.
Table Needed: Employee_T

You might also like