ISYS 2263 SQL Deep Dive
Add the "916 Kent Drive" property to the PROPERTYtable. - ✔️✔️INSERT INTO
PROPERTY VALUES(13, 1, '916 Kent Drive', 1200, 3, 1, NULL, 'SI105');
Create the PROPERTY table. - ✔️✔️CREATE TABLE PROPERTY (
PROPERTY_ID SMALLINT PRIMARY KEY NOT NULL,
OFFICE_NUM TINYINT NOT NULL,
ADDRESS VARCHAR(100) NOT NULL,
SQR_FT SMALLINT NOT NULL,
BDRMS TINYINT NOT NULL,
FLOORS TINYINT NOT NULL,
MONTHLY_RENT SMALLINT,
OWNER_NUM CHAR(5) NOT NULL
);
Create the OWNER table. - ✔️✔️CREATE TABLE OWNER (
OWNER_NUM CHAR(5) PRIMARY KEY NOT NULL,
LAST_NAME VARCHAR(20) NOT NULL,
FIRST_NAME VARCHAR(20) NOT NULL,
ADDRESS VARCHAR(100) NOT NULL,
CITY VARCHAR(20) NOT NULL,
STATE CHAR(2) NOT NULL,
ZIP_CODE CHAR(5) NOT NULL
);
Add the provided information to the OWNER table. - ✔️✔️INSERT INTO OWNER
VALUES('AK102','Aksoy','Ceyda','411 Griffin Rd.','Seattle','WA','98131');
INSERT INTO OWNER VALUES('BI109','Bianchi','Nicole','7990 Willow Dr.','New
York','NY','10005');
INSERT INTO OWNER VALUES('BU106','Burke','Ernest','613 Old Pleasant St.','Twin
Falls','ID','83303');
INSERT INTO OWNER VALUES('CO103','Cole','Meerab','9486 Circle
Ave.','Olympia','WA','98506');
INSERT INTO OWNER VALUES('JO110','Jones','Ammarah','730 Military
Ave.','Seattle','WA','98126');
INSERT INTO OWNER VALUES('KO104','Kowalczyk','Jakub','7431 S. Bishop
St.','Bellingham','WA','98226');
INSERT INTO OWNER VALUES('LO108','Lopez','Janine','9856 Pumpkin Hill
Ln.','Everett','WA','98213');
INSERT INTO OWNER VALUES('MO100','Moore','Elle-May','8006 W. Newport
Ave.','Reno','NV','89508');
INSERT INTO OWNER VALUES('PA101','Patel','Makesh','7337 Sheffield
St.','Seattle','WA','98119');