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
4. Use the sample data provided to determine appropriate datatypes for each column. For this exercise, you will use varchar2, number, or date datatypes. Like columns must have the same datatype and length.
\table[[Column name,Datatype],[DIR_NUM,NUMBER(3)],[DIR_NAME,VARCHAR2(20)],[DIR_DOB,DATE],[PLAY_CODE,NUMBER(4)],[PLAY_NAME,VARCHAR2(30)]]
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 dob)VALUES (100, 'BroadwaY', '12-JAN-1965'):Complete add all three rows.Issue a COMMIT to save data.b. Play Table:INSERT INTO play (play code, play name, dix. numn)VALUES (1001, 'Cat on a Cold, Bare Roof', '102');
Styles 4 . Use the sample data provided to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!