Answered step by step
Verified Expert Solution
Question
1 Approved Answer
by using www.w3schools.com write this SQL queries Write a query that outputs the customer name, total revenue for the customer, and an attribute called type
by using www.w3schools.com write this SQL queries Write a query that outputs the customer name, total revenue for the customer, and an attribute called type that labels customers according to whether or not they have ever purchased seafood (use values Buys seafood and Does not buy seafood). Sort the report so that customers that buy seafood appear from largest total revenue to smallest total revenue, while customer that do not buy seafood are sorted alphabetically by their names .
Suppliers SupplierID SupplierName Products ProductID ProductName OrderDetails rderDetailID OrderID ProductID Quantity ID ID CustomerID upplierID CategoryID Unit Price stName City oyeeID Date ShipperID Photo otes ustomers Customer ID hiopers stomerName pperID ShipperName ContactName dress City lCode untry Categories Category CategoryName ID Suppliers SupplierID SupplierName Products ProductID ProductName OrderDetails rderDetailID OrderID ProductID Quantity ID ID CustomerID upplierID CategoryID Unit Price stName City oyeeID Date ShipperID Photo otes ustomers Customer ID hiopers stomerName pperID ShipperName ContactName dress City lCode untry Categories Category CategoryName ID
Step 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