yes it is right (y) because it is right
SQL translation into Relational Algebra NOT IN
-
13-06-2023 - |
Question
I have the Uni-Schema which can be found here http://hyper-db.com/interface.html#
i try to translate the following SQL Code into Relational Algebra
select distinct s.*, h.vorlnr
from studenten s inner join hoeren h on s.matrnr = h.matrnr
where h.vorlnr not in (select v.vorgaenger from voraussetzen v)
my try is :
πs.*(
ps(studenten) ⋈s.matrnr=h.matrnr ph(hoeren)
⋈ h.vorlnr=v.vorgaenger
pv(πv1.vorgaenger(
voraussetzen -
σh1.vorlnr!=v1.vorgaenger(pv1(voraussetzen) x
ph1(hoeren))))
is that right ? if not why ?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow