Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 6 JustLee Books has become the exclusive distributor for a number of books. The company now needs to assign sales representatives to retail bookstores

image text in transcribed

image text in transcribed

image text in transcribed

Assignment 6 JustLee Books has become the exclusive distributor for a number of books. The company now needs to assign sales representatives to retail bookstores to handle the new distribution duties. For these assignments, create new tables to support the following: 1. Modify the following SQL command so that the Rep_ID column is the PRIMARY KEY for the table and the default value of Y is assigned to the Comm column. (The Comm column indicates whether the sales representative earns commission.) CREATE TABLE store reps (rep ID NUMBER (5), last VARCHAR2 (15), first VARCHAR2 (10) comm CHAR (1) 2. Change the STORE REPS table so that NULL values can't be entered in the name columns 3. Change the STORE REPS table so that only a Y or N can be entered in the Comm 4. Add a column named Base salary with a data 5. Create a table named BOOK STORES to include the columns listed in the following chart (First and Last) column, table. Ensure that the amount entered is above zero. Add a constraint to make sure the Rep ID value entered in the type of NUMBERC72) to the STORE REPS 6. BOOK STORES table is a Column Name Store ID Name Contact Rep ID Datatype NUMBER(8) VARCHAR2(30) VARCHAR2(30) VARCHAR2(5) Constraint Comments PRIMARY KEY column Should be UNIQUE and NOT NULI Coronel PPT Chos.ppt coronel,PPT-Ch D3.ppt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

How flying airoplane?

Answered: 1 week ago

Question

=+What is the nature of the plant or site-level role of unions?

Answered: 1 week ago