Presentation is loading. Please wait.

Presentation is loading. Please wait.

Northwind Sample database (also supplied with MS Access)

Similar presentations


Presentation on theme: "Northwind Sample database (also supplied with MS Access)"— Presentation transcript:

1 Northwind Sample database (also supplied with MS Access)

2 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.

3 Practice.. The ERD for Northwind is on the following slide. As it is populated with data, it is useful for practising the various options.

4

5 Single and 2-table simple query Select * from products, suppliers Select * from products inner join suppliers on suppliers.supplierId = products.supplierId

6 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


Download ppt "Northwind Sample database (also supplied with MS Access)"

Similar presentations


Ads by Google