0% found this document useful (0 votes)
104 views2 pages

Lab 1

This document contains a lab assignment with 10 questions about movies and movie studios: 1. Find title and length of Disney movies from 1990. 2. Find Aishwarya Rai's date of birth. 3. Find the address of studio "Film City".
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views2 pages

Lab 1

This document contains a lab assignment with 10 questions about movies and movie studios: 1. Find title and length of Disney movies from 1990. 2. Find Aishwarya Rai's date of birth. 3. Find the address of studio "Film City".
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

LAB 1

Bài 1:
1. Find title and length of movies produced by Disney in 1990.

πtitle, length (σ(StudioName = ”Disney”) and (year = 1990) (MOVIE))


2. Find date of birth of Aishwarya Rai who is a movie star.

πbirthday(σname = “Aishwararya Rai” (MOVIE))


3. Find the address of studio Film City.

π address (σname = “Film City” (Studio))


4. List name of the female stars in the film “Monsoon Wedding”.

πname (σ(gender = female) and (movieTitle = “MonsoomWedding”) (MovieStar ⋈ Starsln))


5. List name and gender of stars that appeared in movies produced by Sony in 2005.

πname,gender (σ(studioName = “Sony”) and (year = 2005) (MovieStar ⋈ Movies ⋈


Starsln))
6. Find name of the producer of Star Wars.

π produce# (σtitle = “Star Wars” (MovieExec ⋈ Movies))


7. Find name of executives that are worth more than Subhash Ghai.

a = πnetWorth(σname = “Subhash Ghai” (MovieExec))


πname(σnetWorth > a (MovieExec))
8. Find title of movies that are no longer than “Bride and Prejudice”.

a = πlength(σtitle = “Bridge and Prejudice” (Movies))


πname(σlength ≤ a (Movies))
9. List all the titles and years of movies that appeared in either the Movies or StarsIn relation.

π title, year (Movies)U πmovieTitle, movieYear (Starsln))


10. Find name and address of all male movie stars who are also movie executives with a net worth
under $10,000,000.

πname,address(σgender = male (MovieStar)) ∩ πname, address (σnetWorth < $10,000,000


(MovieExec))

Bài 2:

You might also like