retagged by
1,049 views
0 votes
0 votes
Given schema:

$Suppliers$ ($sid:$$ integer$, $sname:$ $string$, $address:$ $string$)
$Parts$ ($pid:$ $integer$, $pname:$ $string$, $color:$ $string$)
$Catalog$ ( $sid:$ $integer,$ $pid:$ $integer,$ $cost:$ $real$)

Find the $sids$ of suppliers who supply every part.

Is My solution correct?: TRC and DRC:

$\{ R$ $| Ǝc ∈$ $Catalog ( ∀p$ ∈ $Parts(c.pid=p.pid$ ^ $c.sid = R.sid))\}$

$\{<A> $$|Ǝ(A,D,G)∈ Catalog$ ^ $∀(D,E,F)∈ Parts\}$
retagged by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
Gate Fever asked Sep 11, 2018
1,668 views
Relation schema is:-suppliers(sid,sname,addr)parts(pid,pname,color)catalog(sid,pid,cost) please expalin what does the above query do?specially how this inner query workin...
5 votes
5 votes
2 answers
2
Rishi yadav asked Sep 7, 2017
5,128 views
Find the names of sailors who have reserved a red or a green boat.???& Find the names of sailors who have reserved at least two boats?
0 votes
0 votes
1 answer
3