Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the schema, tables, and data you created in Exercise 1 (The picture below): Examine the candidate keys in each table. Write ALTER TABLE statements
Using the schema, tables, and data you created in Exercise 1 (The picture below):
Examine the candidate keys in each table.
Write ALTER TABLE statements for each table to create Primary Keys and Foreign Keys where applicable.
Test the statements in your schema to make sure they work.
Tables Customer ?len columns ? CUSCODE ? CUS-LNAME - CUS FNAME ? CUS-INITIAL ? CUS-AREACODE ? CUS-PHONE ? CUS-BALANCE Indexes Foreign Keys Triggers ?| | invoice ?len columns ? INVNUMBER ? CUSCODE ? INVDATE ? INVSUBTOTAL - - - - INV TAX ? INV TOTAL Indexes Foreign Keys Triggers ?- | line Columns ? INVNUMBER ? LINENUMBER ? PCODE ? LINEUNITS ? LINEPRICE ? LINE TOTAL Indexes Foreign Keys Triggers - - - - - ? product ?len columns ? PCODE ? PDESCRIPT ? P. INDATE ? P.Q0H ? PMIN ? PPRICE ? PDISCOUNT ? V-CODE Indexes Foreign Keys Triggers - - - - - vendo ? Columns ? VCODE ? V-NAME ? VCONTACT ? VAREACODE ? V PHONE - - - V STATE ? VORDER Indexes Foreign Keys TriggersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started