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

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

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

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!