Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
### SQL Query Instances: An Educational Exercise

The following SQL queries utilize tables that represent instances of `Reserves`, `Boats`, and `Sailors`. 

#### Table 1: R1 of Reserves
An instance of the `Reserves` relation:
| sid | bid | day       |
|-----|-----|-----------|
| 22  | 101 | 10/10/96  |
| 58  | 103 | 11/12/96  |
| 22  | 102 | 10/10/96  |
| 31  | 101 | 10/10/98  |
| 31  | 102 | 10/22/98  |
| 22  | 104 | 10/10/99  |
| 22  | 102 | 10/11/98  |
| 22  | 101 | 10/7/99   |
| 64  | 104 | 10/9/98   |
| 58  | 102 | 09/05/98  |
| 64  | 102 | 09/08/98  |
| 58  | 102 | 09/08/98  |
| 22  | 102 | 10/11/98  |
| 31  | 102 | 11/09/98  |
| 64  | 102 | 09/05/98  |
| 64  | 103 | 09/08/98  |

#### Table 2: B1 of Boats
An instance of the `Boats` relation:
| bid | bname    | bcolor |
|-----|----------|--------|
| 101 | Interlake| blue   |
| 102 | Interlake| red    |
| 103 | Clipper  | green  |
| 104 | Marine   | red    |

#### Table 3: S1 of Sailors
An instance of the `Sailors` relation:
| sid | sname | rating | age |
|-----|-------|--------|-----|
| 22  | yuppy | 3      | 35  |
| 31  | lubber| 8      | 55  |
| 64  | guppy | 5      | 35  |
| 58  | rust
expand button
Transcribed Image Text:### SQL Query Instances: An Educational Exercise The following SQL queries utilize tables that represent instances of `Reserves`, `Boats`, and `Sailors`. #### Table 1: R1 of Reserves An instance of the `Reserves` relation: | sid | bid | day | |-----|-----|-----------| | 22 | 101 | 10/10/96 | | 58 | 103 | 11/12/96 | | 22 | 102 | 10/10/96 | | 31 | 101 | 10/10/98 | | 31 | 102 | 10/22/98 | | 22 | 104 | 10/10/99 | | 22 | 102 | 10/11/98 | | 22 | 101 | 10/7/99 | | 64 | 104 | 10/9/98 | | 58 | 102 | 09/05/98 | | 64 | 102 | 09/08/98 | | 58 | 102 | 09/08/98 | | 22 | 102 | 10/11/98 | | 31 | 102 | 11/09/98 | | 64 | 102 | 09/05/98 | | 64 | 103 | 09/08/98 | #### Table 2: B1 of Boats An instance of the `Boats` relation: | bid | bname | bcolor | |-----|----------|--------| | 101 | Interlake| blue | | 102 | Interlake| red | | 103 | Clipper | green | | 104 | Marine | red | #### Table 3: S1 of Sailors An instance of the `Sailors` relation: | sid | sname | rating | age | |-----|-------|--------|-----| | 22 | yuppy | 3 | 35 | | 31 | lubber| 8 | 55 | | 64 | guppy | 5 | 35 | | 58 | rust
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education