Question: Please answer questions fully A-H --create tables CREATE TABLE boats ( bid integer, bname color char (20), PRIMARY KEY (bid)); char (20), CREATE TABLE sailors

Please answer questions fully A-H
 Please answer questions fully A-H --create tables CREATE TABLE boats (
bid integer, bname color char (20), PRIMARY KEY (bid)); char (20), CREATE
TABLE sailors sid integer, sname char (30), rating number, age number, PRIMARY
KEY (sid)) CREATE TABLE reserves (sid integer, bid integer, day date, PRIMARY

--create tables CREATE TABLE boats ( bid integer, bname color char (20), PRIMARY KEY (bid)); char (20), CREATE TABLE sailors sid integer, sname char (30), rating number, age number, PRIMARY KEY (sid)) CREATE TABLE reserves (sid integer, bid integer, day date, PRIMARY KEY (sid,bid, day), FK BID RES FOREIGN KEY (bid) REFERENCES boats (bid), FK SID REs FOREIGN KEY (sid) REFERENCES sailors(sid)); CONSTRAINT CONSTRAINT --insert data into tables --boats INSERT INTO boats VALUES (101, INSERT INTO boats VALUES (102 INSERT INTO boats VALUES (103, 'Clipper', 'green'); INSERT INTO boats VALUES (104, 'Marine 'red commit Interlake', 'blue') 'Interlake', 'red') --sailors INSERT INTO sailors VALUES (22, Dustin', 7, 45.0) INSERT INTO sailors VALUES INSERT INTO sailors VALUES INSERT INTO sailors VALUES (32, ,Andy', 8, .25.5'); INSERT INTO sailors VALUES (58, Rusty', INSERT INTO Sailors VALUES (64, (29, (31, 'Brutus', ,Lubber, 1, 8, ,33.0'); 155.5.); 10, '35.0) Horatio',7, 35.O)

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!