Find the information about movies produced

Assignment Help Computer Engineering
Reference no: EM133702912

Consider a database schema with three relations:
Actors (aid:integer, aname:string, age:real, city:string, state:string)
Playsin(aid:integer, mid:integer, character:string)
Movies(mid:integer, mname:string, year:integer, studio:string)
Primary keys are underlined in each relation. Attribute aid uniquely identifies an actor in Actors
relation. An actor has a an id (aid), a name (attr. aname), an age (attr. age), and a city and
state(attributes city and state). Attribute mid uniquely identifies a movie in relation Movies. A
movie has an id(mid), a name(attr. mname), a year (attr. year) and a studio that produced it
(attr. studio). Relation Playsin contains information about actors who played in movies.
Attribute character = the character name of the actor with aid when playing in mid.

Write relational algebra queries for the following queries:
a) Find the information about movies produced by 'WB' or 'Universal' studios.
b) Find the names of actors who are older than 25 and are from state VT.
c) Find the names and ages of the actors who played only in movies only in 2015.
d) Find the names, age and city of actors who are from Boston MA and played some movies produced by 'Universal' studio.
e) Find the name and age of the actors who played in movies both in 2012 and 2018.
f) Find the names of the actors older than 30 who played in a movie produced by 'WB' studio in 2018.
g) Find the information about actors and movies they played in. The result should contain the name and age of actors and the name of movies.
h) Find the names and ages of actors from MA who played as character 'Batman'.
i) [CS630 only] Find the name and age of actors who played in movies produced by 'Paramount' (in any year) and never played in any movie produced by 'WB' in year 2020.
j) [CS630 only] Find names of movies in which actors from both MA and NY states played.

Reference no: EM133702912

Questions Cloud

Pharmacology course antigens-antigens-glucocorticoids : How these words connected the pediatric med surg with pharmacology course antigens, antigens, glucocorticoids,
Develop policies to implement in the event of a cyber attack : Ensure the policy is highly visible both to employees and users and Review security policy and conduct a risk assessment
Why is touch so important for animals and children : Why is touch so important for animals and children? What happens to animals and children when they are deprived of touch early on in life?
Discuss what the result would have been : Discuss what the result would have been if you kept the default 60 seconds value - Using the AWS CloudFormation docs pageLinks to an external site., find two
Find the information about movies produced : Find the information about movies produced by 'WB' or 'Universal' studios. b) Find the names of actors who are older than 25 and are from state VT
Does gen z tension between democracy and majority tyranny : Does Gen Z think about the tension between democracy and majority tyranny differently than previous generations?
What are the variables of the study : What are the variables of the study? Are they clearly defined? What is the hypothesis or research question(s)? What did the study findings conclude?
Slurred speech how to improve verbal communication : The nurse is teaching a client with multiple sclerosis (MS) who has slurred speech how to improve verbal communication.
Did the large far configuration, and why : With the current model, do you think the One Patch configuration would support more or fewer butterflies than did the Large Far configuration, and why?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why a pentester would need to filter out certain types

provide me with an actual example of why a pentester would need to filter out certain types of information when using wireshark?

  Describe the difference between a fat ap and a thin ap

In no less than 250 words, describe the difference between a fat AP and a thin AP. What is needed to deploy a thin AP? Are there any security considerations.

  What are some apparent vulnerabilities

What are some apparent vulnerabilities and What threats are possible on this site? What attacks are possible?

  What can an organization do to protect themselves from this

With the increased chances of a computer compromise resulting in data loss, what can an organization do to protect themselves from this threat?

  Create a separate xsl template for each field

Create an XSLT file named lab5.xslt that reads an XML file containing student records and generates HTML output. Create an XSL template named student, and then create a separate XSL template for each field in the student element. That's a total of..

  How many comparisons does quicksort use to sort the keys

How many comparisons does Quicksort use to sort keys EASY QUESTI0N? How many sentinel keys are needed if insertion sort is called directly from within Quicksort

  Despite increases in computing power and network bandwidth

Despite increases in computing power and network bandwidth, many user interfaces are still largely text oriented, with a few icons and illustrations.

  Write a cpu class that has one member function

Write a CPU class that has one member function, ‘Execute,' which simply gets called to execute the process.

  Are cyberactivists cyber criminals

Cyberactivists Discussion - Are cyberactivists cyber criminals? Why or why not? What are some of the security vulnerabilities of using WebApps

  Why database re-engineering and redesign is required

define what should be done when adding tables and relationships for normalization.

  Describe a concrete implementation of the mergeable heap ADT

Describe a concrete implementation of the mergeable heap ADT that achieves O(logn) performance for all its operations.

  Determine the minimum number of agents

Develop an ExtendSim model to determine the minimum number of agents that will result in an average waiting time of 5 min or less.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd