Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

18 18 movie_cast act_id mov_id role integer integer char (30) actor act_id act_fname act_Iname act_gender integer char (20) char (20) char (1) genres Y gen_id

image text in transcribedimage text in transcribed

18 18 movie_cast act_id mov_id role integer integer char (30) actor act_id act_fname act_Iname act_gender integer char (20) char (20) char (1) genres Y gen_id gen_title integer char (20) movie director dir_id dir_frame dir_lname integer char (20) char (20) Ymovid integer mov title char (50) mov_ year integer mov_time integer mov_lang char (50) mov_dt_rel date mov_rel_country char (5) movie_genres mov_id gen_id integer integer rating reviewer movie_direction dir_id mov_id integer rev_id integer rev_stars integer num_o_ratings integer integer integer 18 18 y rev_id rev_name integer char (30) mov_id 1. Write the SQL queries for the following items, considering the SQL Optimization Techniques studied in classes. a. Retrieve the name and year of the movies. b. Retrieve title and language of all the English movies which were released before 1998. C. Retrieve a list of first and last names of all the actors who were cast in the movie "Titanic" and the roles they played in that production

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_2

Step: 3

blur-text-image_3

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

PostgreSQL 10 High Performance Expert Techniques For Query Optimization High Availability And Efficient Database Maintenance

Authors: Ibrar Ahmed ,Gregory Smith ,Enrico Pirozzi

3rd Edition

1788474481, 978-1788474481

More Books

Students also viewed these Databases questions

Question

What will be the payoff for doing so?

Answered: 1 week ago

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago