in Databases recategorized by
2,748 views
5 votes
5 votes

Consider the following schema:

$\text{Sailors(sid,sname,rating,age)}$
$\text{Boats(bid,bname,colour)}$
$\text{Reserves(sid,bid,day)}$

Two boats can have the same name but the colour differentiates them.

The two relations

$\rho (Tempsids,(\pi _{sid,bid}\,Reserves)/(\pi_{bid}(\sigma_{bname='Ganga'}\,Boats ))),$
$\pi_{sname}(Tempside\Join Sailors)$

If $/$ is division operation, the above set of relations represents the query

  1. Names of sailors who have reserved all boats called Ganga.
  2. Names of sailors who have not reserved any Ganga boat.
  3. Names of sailors who have reserved at least one Ganga boat.
  4. Names of sailors who have reserved at most one Ganga boat.
in Databases recategorized by
by
2.7k views

2 Answers

4 votes
4 votes
Answer - a Name of sailor who have reserved all the boats called Ganga.
Division operator means ALL
Hence this will return all the boats who are named ganga.

1 comment

ref: https://coronet.iicm.tugraz.at/Dbase1/scripts/rdbh06.htm

search for DIVISION on this page

0
0
3 votes
3 votes

 C should be answered Names of sailors who have reserved at least one Ganga boat.

Answer:

Related questions