Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

Distributor PK DISID DalName Phora FK AddressD Catalog PK CallD FK Dist FK Novol PK Fi FeeList FK Rall FK   

Distributor PK DISID DalName Phora FK AddressD Catalog PK CallD FK Dist FK Novol PK Fi FeeList FK Rall FK Standard Fee LaFe Denuntarenage DamagedFeet RowingFoo CuatiD CHE Address PK AddressID She Address City State ZoCode Rental PK RentallD FK CUID FK Invertory D RealDa Acta RetumDate FK TeeD Customer PK Customerio ScheduleRetumDate Director PK Director D FName FNam FK Addresa D Name FK Award FK Movie D LName Phone Email Inventory PK InventoryD FK Movie D PK Movie Movie MovieName Actor Movielang MovieRating Year Released Gene CE FK Dist Academy Awards PK Awards0 AwardName FK Acto D FK MovielD Genre PK Genrein GaraNama FK MavelD ActorActoresses PK ActorID FName LName Movies FK MovelD FK AwardID

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

Drop tables if they exist DROP TABLE IF EXISTS Distributor DROP TABLE IF EXISTS Address DROP TABLE IF EXISTS Customer DROP TABLE IF EXISTS Product DRO... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Modeling and Database Design

Authors: Narayan S. Umanath, Richard W. Scammel

2nd edition

1285085256, 978-1285085258

More Books

Students also viewed these Databases questions

Question

Code in java pleaseeee

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago