SQL Sample Database

We are using Northwind database as the sample database through all our SQL tutorials. Northwind is a fictitious company that imports and exports foods globally. The Northwind sample database provides you with a good database structure and sales data that help you experiment with SQL statements in each tutorial.

The following illustrates the database diagram of the Northwind database:

Northwind Database Diagram

Northwind Database Diagram

Database Tables

The following explain each table in the Northwind database:

  • Customers – stores customer master data
  • Orders – stores transaction sale orders from customers
  • OrderDetails – stores line items of sale orders
  • Products – stores products master data
  • Suppliers – stores suppliers master data
  • Shippers – stores shippers master data
  • Region – stores region master data
  • Territories – store territories master data
  • Employees – store employees master data
  • EmployeeTerritories – store relationship between employee and territory.

Download Sample Database