Write the first SQL script to create Oracle database tables using SQL Data Definition Language (DDL) for
Question:
Write the first SQL script to create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in the metadata of Project 2.
a. Include DROP TABLE statements for each table at the script.
b. Ensure that referential integrity is established between related tables. Every table must have a Primary Key. Related tables must have Foreign Keys defined. These can be defined in ALTER TABLE statements later in the script.
c. At least one ALTER TABLE statement must be included in the first script.
d. Ensure all table constraints are properly defined such as PRIMARY KEYS, FOREIGN KEYS, etc.
e. Be sure to save your first SQL script that creates all of your tables with a .sql extension.
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel