Answered step by step
Verified Expert Solution
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
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 ConstraintsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started