Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 6 (18 points) LName Consider the following ACTORS, FILMS and ACTEDIN relations for this problem. ACTORS FILMS SSNo FName YearOfBirth Gender Film FilmTitle Yearof

image text in transcribedimage text in transcribed

image text in transcribed

Problem 6 (18 points) LName Consider the following ACTORS, FILMS and ACTEDIN relations for this problem. ACTORS FILMS SSNo FName YearOfBirth Gender Film FilmTitle Yearof Number Lengthin No Production OfPrices Mins 1 Bruce Willis 1955 male 1 The Sixth Sense 1999 32 107 2 Milla Jovovich 1975 female 2 Sin City 2005 31 124 3 Clint Eastwood 1930 male 3 The Fifth Element 1997 9 126 4 Turkan Soray 1945 female 4 Unforgiven 1992 40 131 5 Kevin Costner 1955 male 5 A Perfect World 1993 22 138 6 Robert De Niro 1943 male 6 A Bronx Tale 1993 1 177 7 Yilmaz Guney 1937 male 7 The Godfather 11 1974 16 202 8 Pacino 1940 male 8 Once Upon a Time in America 1984 13 229 9 Danny Devito 1944 male 9 One Flew Over the Cuckoo's Nest 1975 35 131 10 Jack Nicholson 1937 male 10 The Departed 2006 94 151 11 Tarik male 11 The Shining 1980 3 146 12 Kadir Inanir 1949 male 12 Titanic 1997 121 194 13 Selvi Boylum Al Yazmalim 1977 2 90 ACTEDIN 14 Yol 1982 6 114 SSNO FilmNo Character 15 Inception 2010 148 1 1 Dr. Malcolm Crowe 1 2 Hartigan 1 3 Korben Dallas 2 3 Leeloo 3 4 Bill Munny 3 5 Chief Red Garnett 4 13 Asya Akan 1949 148 5 5 Robert 'Butch' Haynes 6 6 Lorenzo 6 7 Vito Corleone 6 8 8 8 7 David Noodles' Aaronson Michael Corleone Martini 9 9 10 9 R.P. McMuphy 10 10 Frank Costello 10 11 Jack Torrance 11 14 Seyit Ali 12 13 Ilyas For the following Relational Algebra / SQL statements, specify the output of each query. (do not explain how each query will be executed, but specify the output to be obtained when the query is executed). (a) R1: ACTORS WHERE YearOfBirth > 1948 C: R1 (LName] (b) SELECT FilmTitle FROM FILMS WHERE (LengthInMins BETWEEN 100 AND 200) AND FilmTitle LIKE '[^ATO]%' ORDER BY FilmTitle (c) R1: ACTORS WHERE YearOfBirth 2 OR count(*) = 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

3. You can gain power by making others feel important.

Answered: 1 week ago

Question

Write down the circumstances in which you led.

Answered: 1 week ago