Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write and execute SQL for the following. Use the Northwind sample database. Include the SQL for each problem in your results submitted to your instructor.

image text in transcribed

Write and execute SQL for the following. Use the Northwind sample database. Include the SQL for each problem in your results submitted to your instructor. Do NOT use the MS Access Query By Example (QBE) feature. Actually write the SQL 1. Using the GROUP BY clause and the COUNT function, create a query that will give a count of all the Products, from the Products table, for each Category. In your result set, display the category ID as well as the count. 2. Create a query that willjoin, the Products and Categories tables, and produce a result set with the following columns: from the Products Table from the Products Table from the Products Table from the Categories T from the Products Table ProductID ProductName CategorvId CategoryName UnitPrice able Only include Category Names of: Beverages, and Produce 3. Create a query that will join, the Products and Suppliers tables, and produce a result set with the following columns: ProductID ProductName SupplierID QompanvName from the Products Table from the Products Table from the Products Table from the Suppliers Table from the Suppliers Table ContactName ContactTitlefrom the Suppliers Table Only include Supplier ID 1-4, in your result. Create a query that will join, the Products, Categories, and Suppliers tables, and produce a result set with the following columns: 4. ProductName CategorvName CompanyName from the Products Table from the Products Table from the Categories Table from the Suppliers Table Only include Categories: 1, 4, and 7, in your result

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

help asp

Answered: 1 week ago

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago