Lab1 RA Answer
Lab1 RA Answer
3. List name and gender of stars that appeared in movies produced by Sony in 2005.
ΠstarName, gender(R2)
4. Find name of executives that are worth more than Subhash Ghai.
R1 := ΠnetWorth (σname = ‘Subhash Ghai’ (MovieExec) )
Πname (σmovieExec.netWorth > R1.netWorth (MovieExec x R1))
5. List all the titles and years of movies that appeared in either the Movies or StarsIn
relation.
4. The only legal values for the gender attribute of MovieStar are ’ F ’ and ’ M ’.