Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Based on the table structure (not data) of the PVFC tables presented, write a query to answer the following question: For each customer, show the

Based on the table structure (not data) of the PVFC tables presented, write a query to answer the following question: For each customer, show the customer id, the number of orders he/she has placed, and the date of his/her latest order. Display the one with largest number of orders first.

Order_T OrderLine_T Order ProductID Ordered Quantity Ordered Customerid Order Date 1001 1 2 1001 1 2010-10-21 1001 2 1002 8 2


Order_T OrderLine_T OrderiD ProductiD OrderedQuantitv OrderlD CustomerID OrderDate 1001 2 1001 1 2010-10-21 1001 2 1002 8 2010-10-21 1001 4 1 1003 15 2010-10-22 1002 3 5 1004 2010-10-22 1003 3 3 1005 3 2010-10-24 1004 6 2 1006 2 2010-10-24 1004 8 2 1007 11 2010-10-27 1005 4 3 1008 12 2010-10-30 1006 4 1 1009 4 2010-11-05 1006 5 2 1010 1 2010-11-05 1006 7 2 1007 1 3 Employee_T 1007 2 2 1008 3 3 EmploveelD EmploveeName EmploveeSupervisor 1008 8 123-44-345 Jim Jason 454-56-768 1009 4 2 454-56-768 Robert Lewis 1009 3 1010 8 10 Product_T ProductID ProductLineiD ProductDescription ProductFinish ProductStandardPrice 1 1 End Table Cherry 175.00 2 Coffee Table Natural Ash 200.00 Computer Desk Entertainment Center Natural Maple 650.00 2 Natural Ash 375.00 4 3 1 Writers Desk Cherry 325.00 6. 8-Drawer Desk White Ash 750.00 2 Dining Table Natural Ash 800.00 8 3 Computer Desk Walnut 250.00

Step by Step Solution

3.35 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

Solution Here we need the Customer ID Number of Orders date ... 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Accounting questions

Question

What is transaction integrity? Why is it important?

Answered: 1 week ago

Question

List the nine major components in a database system environment.

Answered: 1 week ago

Question

What mental processes allow you to perceive a lemon as yellow?

Answered: 1 week ago