Question: --3. Write a SELECT statement that returns one row for each category with these columns: The CategoryName column from the Categories table, The count of
--3. Write a SELECT statement that returns one row for each category with these columns: The CategoryName column from the Categories table, The count of the products in the Products table (give alias of ProductCount). The list price of the most expensive product in the Products table (give alias of MostExpensivePrice). Only return categories with a most expensive product greater than or equal to $50. Sort the result set so the category with the most products appears first. ::E: 4 points I got 6 rows QUESTION: What is the CategoryName, ProductCount, and MostExpensivePrice in record 3? ANSWER: Seafood 12 62.50 --4. Write a SELECT statement that answers this question: Which products have a list price thats less than the average list- price for all products? Return the ProductName and UnitPrice columns for each product. Sort the results by the UnitPrice column-in ascending sequence. Hint. You will need a subquery 4 points +got 52 rows QUESTION-What-is-the Product Name in record-37- ANSWER Konbu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
