Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Nepotism: if a director hires an actor with the same last name but different first name, this is a potential case of nepotism. For each

image text in transcribed

Nepotism: if a director hires an actor with the same last name but different first name, this is a potential case of nepotism. For each director, report the number of actors the director has hired on any movie he/she directs with the the same last name but different first name. Include directors who are not guilty of nepotism with a count of zero. For each director, return one tuple with the director's id along with first and last names of the director and the number of such (potentially related) actors. If an actor is hired for multiple moviews or roles, just count him/her once. In the SQL, order the output by director id, Iname (of director), frame (of director). actors first name has wamerad M movies year raak 112290 Fight Club 1995 209658 Moet the Parents 2000 210511 Moment 2000 roles actor men 313395 Cat. James T. Kirk 433259 407323 Sgt. The 9936 3421 Herself 79736 directors id First name last_name 24758 David Fincher 6695 Jay Roach 72723 William Shar movies directors director id movie id 24758 112290 209658 72723 31339 movies genres movie Hd 209658 Comedy 313398 Action 313398 Sci-Fi Nepotism: if a director hires an actor with the same last name but different first name, this is a potential case of nepotism. For each director, report the number of actors the director has hired on any movie he/she directs with the the same last name but different first name. Include directors who are not guilty of nepotism with a count of zero. For each director, return one tuple with the director's id along with first and last names of the director and the number of such (potentially related) actors. If an actor is hired for multiple moviews or roles, just count him/her once. In the SQL, order the output by director id, Iname (of director), frame (of director). actors first name has wamerad M movies year raak 112290 Fight Club 1995 209658 Moet the Parents 2000 210511 Moment 2000 roles actor men 313395 Cat. James T. Kirk 433259 407323 Sgt. The 9936 3421 Herself 79736 directors id First name last_name 24758 David Fincher 6695 Jay Roach 72723 William Shar movies directors director id movie id 24758 112290 209658 72723 31339 movies genres movie Hd 209658 Comedy 313398 Action 313398 Sci-Fi

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

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago