1 Modify the following SQL command so that the RepID column

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) );

Solution


CREATE TABLE store_reps

(rep_ID NUMBER(5),

last VARCHAR2(15),

first VARCHAR2(10),

comm char(1) DEFAULT \'Y\',

CONSTRAINT \"REP_ID\" PRIMARY KEY (\"REP_ID\"));

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 C

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site