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 pvv1.vorgaenger(
                           voraussetzen - σh1.vorlnr!=v1.vorgaenger(pv1(voraussetzen) x ph1(hoeren))))

is that right ? if not why ?

Was it helpful?

Solution

yes it is right (y) because it is right

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top