Escolar Documentos
Profissional Documentos
Cultura Documentos
CIS305-T301
Week 4 Assignment and T-SQL
Week 4 Assignment:
use cis305;
NOT NULL,
varchar(30)
NOT NULL
Next, write T-SQL to alter the booth table and the machine table to add a product
id attribute, type integer to each table. When the fields have been successfully
added to each table, copy and paste your T-SQL into your assignment
submission.
use cis305;
ALTER TABLE dbo.Booth
ADD Product_ID int
NOT NULL;
NOT NULL;
Lastly, use the following two sets of insert statements to insert data into the
product table and the booth table.
use cis305;
QUERY OUTPUT:
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
Using the insert statements for the booth table, write insert statements to insert the
following values into the machine table for the machine product, machine price, and
product id fields respectively: