Download presentation
Presentation is loading. Please wait.
Published byΝανα Αγγελίδης Modified over 6 years ago
1
CSCI 6315 Applied Database Systems – Exercise (3)
Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
2
SQL (1) Find ids of sailors who’ve reserved boat with bid 103 SQL:
Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
3
SQL (2) Find the names of sailors who’ve reserved boat with bid 103
Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
4
SQL (3) Find the names of sailors who’ve reserved a red boat SQL:
Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
5
SQL (4) Find the names of sailors who’ve reserved a red or a green boat Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
6
SQL (5) Find the names of sailors who’ve reserved a red and a green boat Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
7
SQL (6) Find the ids of sailors who have made at least two reservations on the same date Sailors (sid, sname) Reserves (sid, bid, date) Boats (bid, bname, color) SQL:
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.