Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Get to know the database
5. The Products and Categories tables
Summary

Instruction

Well done! We'll now discuss the Products and Categories tables.

The Products table stores information about products sold at the Northwind store. Each product has a unique ProductID and a ProductName. Each product is supplied by a single supplier (SupplierID) and belongs to a single category (CategoryID). Each product also has a certain UnitPrice. The Discontinued column contains either a 0 (available in store) or a 1 (discontinued) that reflects the current availability of that product.

Products are organized into categories. The information about categories is stored in the Categories table. Each category has a unique ID and a CategoryName. There is also a short Description.

Because the Products table contains the CategoryID column, you can join it with the Categories table to get more information about the product's category (e.g., the category name).

Exercise

For each product, display its name (ProductName), the name of the category it belongs to (CategoryName), quantity per unit (QuantityPerUnit), the unit price (UnitPrice), and the number of units in stock (UnitsInStock). Order the results by unit price.

Stuck? Here's a hint!

Join the Categories and Products tables.