Northwind Sample database (also supplied with MS Access)
Sample database There is a sample database on SQL Server 7 that can be used to make queries. To query the database, change the database name in the Query Analyser to Northwind.
Practice.. The ERD for Northwind is on the following slide. As it is populated with data, it is useful for practising the various options.
Single and 2-table simple query Select * from products, suppliers Select * from products inner join suppliers on suppliers.supplierId = products.supplierId
Simple 2-table query /* Show the productiD, the product name, the category id and the category name. */ Select products.productid, products.productname, categories.categoryid, categories.categoryname from categories join products on products.categoryid = categories.categoryid