Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Data from one or more tables- use zag -- Marketing needs a list of customers and what product they have purchased -- which also shows

Data from one or more tables- use zag
-- Marketing needs a list of customers and what product they have purchased
-- which also shows category name and vendor name for that product.  
-- Generate query that returns customername, productname, categoryname, vendorname
-- order the list by customer name
-- Your list should contain 9 items

 

category categoryid CHAR (2) categoryname VARCHAR(25) Indexes product productid CHAR(3) productname

category categoryid CHAR(2) categoryname VARCHAR(25) Indexes product productid CHAR(3) productname VARCHAR(25) productprice DECIMAL (7,2) ++ vendorid CHAR(2) categoryid CHAR(2) Indexes 1 T 1 vendor vendorid CHAR(2) vendorname VARCHAR (25) Indexes includes productid CHAR(3) ?tid VARCHAR(8) quantity INT Indexes HH salestransaction tid VARCHAR(8) customerid CHAR (7) storeid VARCHAR(3) tdate DATE Indexes store storeid VARCHAR(3) storezip CHAR(5) regionid CHAR(1) Indexes H V region regionid CHAR(1) regionnam e VARCHAR(25) Indexes K >+ -H customer customerid CHAR (7) customername VARCHAR(15) customerzip CHAR (5) Indexes + saletransaction ?tid VARCHAR (8) customerid CHAR(7) stored VARCHAR (3) tdate DATE Indexes 0 0 Q 0

Step by Step Solution

3.37 Rating (147 Votes )

There are 3 Steps involved in it

Step: 1

To generate a query that meets the specified requirements we can use the SQL SELECT statement along ... 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

Smith and Roberson Business Law

Authors: Richard A. Mann, Barry S. Roberts

15th Edition

1285141903, 1285141903, 9781285141909, 978-0538473637

More Books

Students also viewed these Databases questions

Question

As a manager, would you use management by objectives (MBO)?

Answered: 1 week ago