Question: You may need to use a recursive join ( AKA self join ) or a subquery to solve this problem. Write a SQL query to
You may need to use a recursive join AKA self join or a subquery to solve this problem.
Write a SQL query to rank the top production companies by the total number of films they have produced. Include the attributes and aliases shown in the example below. points
Hints:
To add a rank column you could use either the ROWNUMBERO or RANKO windowing function. Choose the most appropriate for the problem.
This problem is a good candidate to solve with a CIE query for extra credit.
To limit the results to the top you can use Mysol's LiMII clouse like this:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
