Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using sql server using these tables I want to create a query that list the count of the indivual products ordered , shows the name

image text in transcribed

using sql server

using these tables

I want to create a query that list the count of the indivual products ordered , shows the name of the product for each and then displays only the products that have been ordered more then three times

dbo.COURSE +]dbo.CUSTOMER Statistics dbo.ENROLLMENT dbo.tblOrders dbo.tblAddresses Columns rO OrdenD (PK, int, not null) ee CustomerID (FK, int, null) OrderDate (datetime, not null) ShipAmount (money, not null) l dbo.tblCategories dbo.tblCustomers Columns CustomerlD (PK, int, not null) B TaxAmount (money, not null) ShipDate (datetime, null) ShipAddressD (int not null) B CardType (varchar(50), not nul) EmailAddress (varchar(255), not null) E FirstName (varchar(60), not null) CardNumber (char(16), not null) CardExpres (char(7), not null) BillingAddressID (int, not null) LastName (varchar(60), not null) ShippingAddressID (int, null) B BillingAddressiD (int,null) DateAdded (smalldatetime, null) Keys Constraints -Triggers Indexes CustomerType (char(2), null) PrimaryContactNumber (varchar(15), null) -Keys Constraints Triggers dbo.tblProducts Columns ProductID (PK, int, not null) O CategorylD (FK, int, null -Indexes -Statistics ProductCode (varchar(10), not null) ProductName (varchar(255), not null) dbo.tblOrderitems Columns Description (text, not null) PurchasePrice (money, not null) ItemID (PK, int, not null) OrderlD (FK, int, null) DiscountPercent (money, not null) DateAdded (datetime, null) Renta!Price (money, not null) VendorID (int, not null) ProductID (int, null) E ItemPrice (money, not null) DiscountAmount (money, not null) Quantity (int, not null) E -Keys Constraints

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago