Question: Create a table named REP. The table has the same structure as the SALES _ REP table shown on page 1 of this lab, except

Create a table named REP. The table has the same structure as the SALES_REP table shown on page 1 of this lab, except the COMMISSION and RATE columns should use the NUMERIC data type. Execute the command to describe the layout and characteristics of the REP table. To see the structure of the SALES_REP table, use the DESCRIBE SALES_REP; command. Add the following row to the REP table: rep ID: 35 first name: Fred last name: Kiser address: 427 Billings Dr. city: Cody state: WY postal: 82414 cell phone: 307-555-6309 commission: 0.00 rate: 0.05CREATE TABLE REP
(
REP_ID CHAR(2) PRIMARY KEY,
FIRST_NAME CHAR(20),
LAST_NAME VARCHAR(20),-- Variable-length string
ADDRESS CHAR(20),
CITY CHAR(15),
STATE CHAR(2),
POSTAL CHAR(5),
CELL_PHONE CHAR(12),
COMMISSION NUMERIC(7,2),-- Synonym for DECIMAL
RATE NUMERIC(3,2)-- Synonym for DECIMAL
);
DESCRIBE REP;
 Create a table named REP. The table has the same structure

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