Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

keys are underlined in each relation. Specify the following queries in relational algebra using above database schema . 1). Find names of sailors who have

image text in transcribed

keys are underlined in each relation. Specify the following queries in relational algebra using above database schema.

1). Find names of sailors who have reserved a RED boat?

2). Find names of sailors who have reserved a RED or a GREEN boat?

2.1) Can also define tempboats using UNION (how?)

2.2) What happens of v is replaced by ^ in this query?

3). Find names of sailors who have reserved a RED and a GREEN boat?

4). Find the names of sailors who have reserved all boats?

5). Find the names of sailors who have reserved all "Interlake" boats?

please solve all the question. don't copy the answer.

Sailors(sid: integer, sname: string, rating: integer, age: real) Boats(bid: integer, bname: string, color: string) Reserves(sid: integer, bid: integer, day: date) Boats: Reserves: Sailors: Sid Sname Rating Age bid bname color sid bid day 22 Dustin 7 45 101 Interlake blue 22 101 1998-10-10 29 Brutus 1 33 22 102 1998-10-10 31 Lubber 8 55.5 102 Interlake red 103 Clipper green 104 Marine red 22 103 1998-10-8 8 25.5 22 104 1998-10-7 32 Andy 58 Rusty 10 35 31 102 1998-11-10 64 Horatio 7 35 31 103 1998-11-6 71 Zorba 10 16 31 104 1998-11-12 74 Horatio 9 40 64 101 1998-9-5 85 Art 3 25.5 64 102 1998-9-8 95 Bob 3 63.5 74 103 1998-9-8

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

Describe the new structures for the HRM function. page 676

Answered: 1 week ago