Question: Styles 4 . Use the sample data provided to determine appropriate datatypes for each column. For this exercise, you will use varchar 2 , number,
Styles
Use the sample data provided to determine appropriate datatypes for each column. For this exercise, you will use varchar number, or date datatypes. Like columns must have the same datatype and length.
tableColumn name,DatatypeDIRNUM,NUMBERDIRNAME,VARCHARDIRDOB,DATEPLAYCODE,NUMBERPLAYNAME,VARCHAR
Log into our database and create the DIRECTOR and PLAY tables. You have been provided with the code below.Next, enter all the data above into each table. Since there is a foreign key defined on the play table for dir num, the director table must be populated before the play table. This is sometimes referred to as hierarchy. DIRECTOR is the parent of PLAY.a Director Table:INSERT INTO director dir num, dir, lname dir dobVALUES 'BroadwaY', JAN:Complete add all three rows.Issue a COMMIT to save data.b Play Table:INSERT INTO play play code, play name, dix. numnVALUES 'Cat on a Cold, Bare Roof', ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
