Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Assignment 1 Copy your queries and paste it under each question. Upload the file to the Canvas submission folder. Using Teradata Viewpoint Database: db_pvfc11_big

image text in transcribedimage text in transcribed

SQL Assignment 1 Copy your queries and paste it under each question. Upload the file to the Canvas submission folder. Using Teradata Viewpoint Database: db_pvfc11_big 3. Retrieve the product line ID and the average standard price for products whose standard price greater than $200 in each product line. Include in the answer set only those product lines that have an average standard price of at least $500. 4. For each order, display the order ID, the number of separate products included in the order, and the total number of product units (for all products) ordered. 5. For each customer, list the Customerld and total number of orders placed. 6. Display the product ID and the number of orders placed for each product. Show the results in decreasing order by the number of times the product has been ordered and label this result column NumOrders

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions