B) Use subquery to answer the following questions: Work on the “Products", “Suppliers", and “Categories" tables as needed. • List the contact name and phone number of the supplier that provide us with the cheapest product. • List full information of the category that has the largest number of products

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter3: Creating Tables
Section: Chapter Questions
Problem 13RQ
icon
Related questions
Question

Please Solve it in SQL (part b)

• Using the online database provided by W3schools.com (check the link).
• For each query screenshot the SQL code and the result table.
• Arrange everything in 1 file by the query number.
• Add a cover page & Upload your work to Blackboard as a PDF file.
• https://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all
A) Work on the “Products" table and apply the queries mentioned
below.
• Display the average price of products in each category (name the
result column as “AVG Price"), also display the category ID
• Display the most expensive product name and ID that came from
supplier number 6.
B) Use subquery to answer the following questions: Work on the
“Products", “Suppliers", and “Categories" tables as needed.
• List the contact name and phone number of the supplier that provide
us with the cheapest product.
• List full information of the category that has the largest number of
products
Transcribed Image Text:• Using the online database provided by W3schools.com (check the link). • For each query screenshot the SQL code and the result table. • Arrange everything in 1 file by the query number. • Add a cover page & Upload your work to Blackboard as a PDF file. • https://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all A) Work on the “Products" table and apply the queries mentioned below. • Display the average price of products in each category (name the result column as “AVG Price"), also display the category ID • Display the most expensive product name and ID that came from supplier number 6. B) Use subquery to answer the following questions: Work on the “Products", “Suppliers", and “Categories" tables as needed. • List the contact name and phone number of the supplier that provide us with the cheapest product. • List full information of the category that has the largest number of products
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr