SQL Data Olympics Challenge
QUESTION 1
Dataset_Name: Employee
Q. FIND EMPLOYEES IN THE SALES DEPARTMENT WHO REACHED A TARGET OF MORE THAN
150. OUTPUT THE FIRST NAMES OF EMPLOYEES. SORT RECORDS BY THE FIRST NAME IN
DESCENDING ORDER.
Marks 10 Time 1.5 Minutes
SQL Data Olympics Challenge
QUESTION 2
Wizards (Sample) Spells (Sample)
Q. Write a SQL code to find the average number of spells cast by each house, and list the
wizards who have cast more spells than the average for their respective houses. Display the
wizard's name, house, and the total number of spells cast.
Marks 10 Time 4 Minutes
SQL Data Olympics Challenge
QUESTION 3
Movies - (Sample Data)
Q. Write a SQL query to calculate the cumulative box office collection for each movie,
ordered by release date
Marks 10 Time 5 Minutes
SQL Data Olympics Challenge
QUESTION 4
Movie_Ratings - (Sample Data)
Q. Write a SQL query to find the top 3 movies with the highest average ratings, considering only
the latest rating from each user
Marks 10 Time 5 Minutes
SQL Data Olympics Challenge
QUESTION 5
Actor_Salary - (Sample Data)
Q. Write a SQL query to find the salary changes for each actor over time, including the previous
and current salary, and the percentage change.
Marks 10 Time 5 Minutes
SQL Data Olympics Challenge
QUESTION 6
Songs- (Sample Data)
Q. Write a SQL query to calculate the 30-day moving average of play counts for each song,
ordered by play date.
Marks 10 Time 5 Minutes
SQL Data Olympics Challenge
QUESTION 7
Movie_Characters- (Sample Data)
Q. Write a SQL query to rank actors based on their total screen time contribution across all
movies
Marks 10 Time 5 Minutes
SQL Data Olympics Challenge
QUESTION 8
Dataset_Name: Money_Heist_Sample
Q. Above is a sample dataset of bonus received by each robber during a heist.
The DATA IS JUST A SAMPLE. A robber can receive multiple bonus.
write a sql code to Retrieve the total bonus amount awarded to each
robber in the team. Show the robber's name and the total bonus amount received.
Marks 10 Time 3 Minutes
SQL Data Olympics Challenge
QUESTION 9
Robbery_Targets Loot_Amounts
Q. Write a SQL code to find the average loot amount for each robbery target and compare it
with the overall average loot amount. Display the target name, the average loot amount for the
target, and whether it is above or below the overall average loot amount.
Marks 10 Time 5 Minutes