Database Tutorial

Course Tutorial Site

Site Admin

Help Section

without comments

Lab #2: Create Tables

Learn about records, tables, Data Definition Language (DDL) commands, and database constraints.

Lab Help Section

There are four key elements to creating tables in a relational database. Table names, column names, constraint names, and types are the four key elements of tables.

The name of any table must be unique within a database (a database management system may and typically does hold more than one database). Likewise, column names must be unique within any table. Constraint names are like table names because they must be unique within a database. Lastly, data types must be defined before you use them to create or modify a table definition.

You are asked to review the following preparation material:

The reading material gives you a foundation of knowledge about creating tables, constraints, indexes, and sequences.

This lab has ten unit testing SQL script files, and one integration SQL script file. Each unit SQL script file contains the steps to manage table creation in a re-runnable script file. The integration SQL script file calls the unit test programs in the proper sequence necessary due to dependencies between the scripts.

Written by michaelmclaughlin

August 7th, 2018 at 9:18 am

Posted in