Professional Documents
Culture Documents
Part 1 - Game Data Analyst PDF
Part 1 - Game Data Analyst PDF
PART A
Write the sql code for the below questions and also try to take out at least two answers in excel
as well.
Q1: From the given Dataset, determine and analyze Day 1, Day 3, Day 7, Day 15 and Day 30
Retention. (Refer to Session start tab)
Q2: After which level do most players start spending money? (Spenders tab)
Q3: Identify packs which generate the most revenue and the ones which are bought the most?
(Spenders tab)
Q4: Which levels are being replayed by the players the most in the month of July’17? (Level
Start tab)
Q5: In India, how many players are playing more than 5 sessions? (Session Start tab)
PART B
Q1: Consider a table with columns employee, month, year and salary. Write a query for getting
the cumulative salary for each employee within each year
Column in yellow should be your output
Employee Month Year Salary Cum Sal
A Jan 2016 2000 2000
A Feb 2016 2000 4000
A Mar 2016 2000 6000
A Apr 2016 3000 9000
A May 2016 3000 12000
A Jun 2016 3000 15000
A Jul 2016 3000 18000
A Aug 2016 3000 21000
A Sep 2016 3000 24000
A Oct 2016 3000 27000
A Nov 2016 3000 30000
A Dec 2016 3000 33000
A Jan 2017 3000 3000
A Feb 2017 3000 6000
A Mar 2017 3000 9000
A Apr 2017 5000 14000
A May 2017 5000 19000
A Jun 2017 5000 24000
A Jul 2017 5000 29000
A Aug 2017 5000 34000
User
A
A
A
B
B
C
Required Output
a) Write a query to get the country from which the maximum orders are being placed.
b) Write a query for list of customers who have made at least two purchases
c) Write a query for the count of customers who haven’t made a single purchase