Question: Create a table named REP_CONTRACTS containing the columns listed in the following chart. A composite PRIMARY KEY constraint including the Rep_ID, Store_ID, and Quarter columns

Create a table named REP_CONTRACTS containing the columns listed in the following chart. A composite PRIMARY KEY constraint including the Rep_ID, Store_ID, and Quarter columns should be assigned. In addition, FOREIGN KEY constraints should be assigned to both the Rep_ID and Store_ID columns.

Column NameDatatype NUMBER(8) Store_ID NUMBER(5) Name Quarter CHAR(3) Rep_ID NUMBER(5)

Column NameDatatype NUMBER(8) Store_ID NUMBER(5) Name Quarter CHAR(3) Rep_ID NUMBER(5)

Step by Step Solution

3.43 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

CREATE TABLE repcontracts storeid NUMBER8 name NUMBER5 quart... View full answer

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

Document Format (2 attachments)

PDF file Icon

1803_60b8c12122efd_716104.pdf

180 KBs PDF File

Word file Icon

1803_60b8c12122efd_716104.docx

120 KBs Word File

Students Have Also Explored These Related Oracle 12c SQL Questions!