Question: Draw the schema using SQL Developer after you have created it so you can visualize what you have created. From the drawing indicate the type

Draw the schema using SQL Developer after you have created it so you can visualize what you have created. From the drawing indicate the type of schema that you have drawn. 

All tables except TRANSACTIONS are to have primary keys.  That will be 5 primary key definitions and 5 foreign key definitions.  All constraints are to be properly named with user named constraints; I do not want to see any SYS_C constraint names. 

Submission:

  1. The SQL statements for all 6 tables, include the response SQL developer provides when it is created.
  2. The constraints for each table.  This can be done at the time you created the table, or after the tables is created.  I need to see the SQL for each constraint, make sure you use user defined names as stated above.
  3. The diagram of your schema.
  4. Identify the type of schema you have created.

ENJOY !!!!!

 

COLUMN NAMEDATA TYPE and SIZE
STOCK_IDNUMBER(4)
STOCK_SYMBOLVARCHAR2(8)
STOCK_DESCRIPTIONVARCHAR2(30)
INDUSTRY_IDNUMBER(4)

 

COLUMN NAMEDATA TYPE and SIZE
TIME_IDDATE
DAYVARCHAR2(9)
MONTHVARCHAR2(10)
QUARTERNUMBER(1)
YEARNUMBER(4)
SEASONVARCHAR2(10)

 

 

COLUMN NAMEDATA TYPE and SIZE
BROKERAGE_IDNUMBER(4)
OFFICE_NAMEVARCHAR2(25)
CITY_IDNUMBER(4)

 

 

COLUMN NAMEDATA TYPE and SIZE
STOCK_IDNUMBER(4)
TIME_IDDATE
BROKERAGE_IDNUMBER(4)
BUY_SELL_INDICATORVARCHAR2(1)
NUMBER_OF_SHARESNUMBER(6)
PRICENUMBER(6,2)

 

 

COLUMN NAMEDATA TYPE and SIZE
CITY_IDNUMBER(4)
CITYVARCHAR2(10)
STATE_PROVINCEVARCHAR2(10)
REGIONVARCHAR2(15)
POSTAL_CODEVARCHAR2(6)

 

You need to create a table called INDUSTRIES based on the following definition.

COLUMN NAMEDATA TYPE and SIZE
INDUSTRY_IDNUMBER(4)
INDUSTRYVARCHAR2(20)
NATIONVARCHAR2(10)

Step by Step Solution

3.43 Rating (166 Votes )

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 Databases Questions!