1) The document describes a database schema with five relations about movies: Movies, StarsIn, MovieStar, MovieExec, and Studio.
2) It provides examples of relational algebra queries to answer questions about the data, including finding movie titles and lengths produced by Disney in 1990, and listing the names of female stars in the film "Monsoon Wedding".
3) Relational algebra operations like selection, projection, and joins are used to query the different relations and extract the requested information.
1) The document describes a database schema with five relations about movies: Movies, StarsIn, MovieStar, MovieExec, and Studio.
2) It provides examples of relational algebra queries to answer questions about the data, including finding movie titles and lengths produced by Disney in 1990, and listing the names of female stars in the film "Monsoon Wedding".
3) Relational algebra operations like selection, projection, and joins are used to query the different relations and extract the requested information.
1) The document describes a database schema with five relations about movies: Movies, StarsIn, MovieStar, MovieExec, and Studio.
2) It provides examples of relational algebra queries to answer questions about the data, including finding movie titles and lengths produced by Disney in 1990, and listing the names of female stars in the film "Monsoon Wedding".
3) Relational algebra operations like selection, projection, and joins are used to query the different relations and extract the requested information.
relations: Movies (title, year, length, genre, studioName#, producer#)
StarsIn (movieTitle#, movieYear, starName#)
MovieStar (name, address, gender, birthdate)
MovieExec (producer#, name, address, netWorth)
Studio (name, address, presC#)
Write expressions of relational algebra to answer the following queries.
1. Find title and length of movies produced by Disney in 1990.
Answer: πtitle,length(σstudioName#=’Disney’AND year=1990(Movies)) 2. Find date of birth of Aishwarya Rai who is a movie star. Answer: πbirthday(σname=’Aishwarya Rai’(MovieStar)) 3. Find the address of studio Film City. Answer: πaddress(σname=’Film City’(Studio)) 4. List name of the female stars in the film “Monsoon Wedding”. Answer: A = πstarName#(σmovieTitle#=’Monsoon Wedding’(StarsIn)) πname(σname=starname# AND gender=’F’(A x MovieStar)) 5. List name and gender of stars that appeared in movies produced by Sony in 2005. Answer: πname,gender(σ