This section contains the SQL code to create the databases used in each lesson, along with objects such as tables, views, stored procedures, triggers, and functions, and, lastly, the BCP script to import data from the text files in the zip file in this section.
The HOBBY_SHOP database is also included but not used in this module. It would be a good idea to create triggers similar to the ones in the lessons, but against the HOBBY_SHP database, which has more data.
Below is a breakdown of the databases used in each lesson:
M4 L1 - TEST DB
M4 L2 - TEST DB
M4 L3 - TEST DB
M4 L4 - TEST DB
M4 L5 - TEST DB
M4 L6 - TEST DB
M4 L7 - TEST DB
M4 L8 - TEST DB
M4 L9 - InventoryM4 DB, all tables created in example script
M4 L10 - TEST DB
M4 L10 - TEST DB
M4 L11 - TEST DB
Here is all the code for the examples discussed in each lesson.
In this section, you will find the homework assignments, homework solutions, and a homework template you can use to start you on the homework assignment for the lesson. The homework template is an incomplete solution, and you need to fill in the missing logic. The solutions, of course, are just one of many possible solutions. Try to complete the code on your own and only check out the solutionif you are stuck.
A series of queries, stored procedures and dynamic management tools to help you manage your triggers.