Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you please help me? to solve this question!! 1 - Suppose we have a database consisting of the following three relations SWIMMER(SSN, SNAME, LEVEL)

can you please help me? to solve this question!!
image text in transcribed
1 - Suppose we have a database consisting of the following three relations SWIMMER(SSN, SNAME, LEVEL) BEACH(B#, BNAME, STATE, POLLUTION) SWIMMING(SSN, B#, DATE, DURATION) a The first relation (SWIMMER) indicates the swimmers and their level (beginner, intermediate, advanced). the second (BEACH) indicates different beaches across the country. Each beach has a number (B#) a name (BNAME) and a pollution rate of 0 (low pollution), 1 (moderate pollution), or 2 (high pollution). The third (SWIMMING) records the members swimming. (Relational Algebra symbols: O (SIGMA), TT (PROJECT). U (UNION), (INTERSECTION), (-) MINUS, (JOIN) If you cannot copy-paste, simply type SIGMA, PROJECT, JOIN, etc.) N Express the following queries in (1) relational algebra and (1) SQL. 1. List the names of beaches that John Smith has visited? 2. List the names of swimmers who visited at least one beach to which John Smith has also been. 3. List the names of swimmers who visited only beaches to which John Smith has visited. 4. List the names of swimmers who visited no beach to which John Smith has been 5. List the names of the swimmers who visited all the beaches to which John Smith has been

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_2

Step: 3

blur-text-image_3

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions