Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
image text in transcribed
--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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

5. Tell how job experiences can be used for skill development.

Answered: 1 week ago

Question

4. Explain the characteristics of successful mentoring programs.

Answered: 1 week ago