Populating the Sample Tables

The following scripts can be used to populate the sample tables.

Tip If you have downloaded the populated Microsoft Access MDB file you will not have to run these scripts.

Caution Do not run the following scripts more than once. If you have primary keys defined (and you should) then running these scripts a second time will generate SQL errors. If you do not have primary keys defined you'll end up with duplicate data (and your query results will not match those shown in the examples).

The Vendors Table

 INSERT INTO Vendors(vend_id, ...

Get Sams Teach Yourself SQL in 10 Minutes, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.