WGU C170 Code to create and populate the Premiere Products Database
WGU C170 Code to create and populate the Premiere Products Database Code to create and populate the Premiere Products Database Create a database called Premiere Products and then create the following tables: CREATE TABLE Rep ( rep_num INT(5) NOT NULL, last_name VARCHAR(30) NOT NULL, first_name VARCHAR(20) NOT NULL, street VARCHAR(20) NOT NULL, city VARCHAR(20) NOT NULL, state CHAR(2) NOT NULL, zip VARCHAR(5) NOT NULL, commission FLOAT NOT NULL, rate FLOAT NOT NULL, PRIMARY KEY (rep_num) ); CREATE TABLE Customer ( customer_num INT(5) NOT NULL, customer_name VARCHAR(30) NOT NULL, street VARCHAR(20) NOT NULL, city VARCHAR(20) NOT NULL, state CHAR(2) NOT NULL, zip VARCHAR(5) NOT NULL, balance FLOAT NOT NULL, credit_limit FLOAT NOT NULL, rep_num INT(5) NOT NULL, PRIMARY KEY (customer_num), FOREIGN KEY (rep_num) REFERENCES Rep (rep_num)
Escuela, estudio y materia
- Institución
- Pennsylvania State University - All Campuses
- Grado
- Nursing (WGUC170)
Información del documento
- Subido en
- 27 de marzo de 2022
- Número de páginas
- 5
- Escrito en
- 2021/2022
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
wgu c170 code to create and populate the premiere products database