Practice Questions

window functions SQL Interview Questions

Master SQL interview patterns with structured question sets, company filters, and run-ready challenges.

Questions Showing

68

Companies

23

Access Tier

Free

ID Title Level FTPR Lecture
58 Percentage of revenue per movie Hard

8%

4.1
59 Percentage of revenue per movie by category Medium

6%

4.1
60 Movie rentals and average rentals in the same category Hard

9%

4.1
61 Customer spend vs average spend in the same store Hard

11%

4.1
62 Shortest film by category Medium

8%

4.2
63 Top 5 customers by store Hard

8%

4.2
64 Top 2 films by category Hard

14%

4.2
65 Movie revenue percentiles Easy

16%

4.3
66 Movie percentiles by revenue by category Medium

18%

4.3
67 Quartile by number of rentals Easy

24%

4.3
68 Spend difference between first and second rentals Hard

12%

4.4
69 Number of happy customers Hard

7%

4.4
70 Cumulative spend Easy

13%

4.1
71 Cumulative rentals Easy

21%

4.1
72 Days when they became happy customers Medium

10%

4.2
73 Number of days to become a happy customer Hard

11%

4.2
74 The most productive actors by category Hard

7%

4.2
75 Top customer by movie category Medium

26%

4.2
76 Districts with the most and least customers Easy

12%

4.2
77 Movie revenue percentiles by category Easy

18%

4.3
78 Quartiles buckets by number of rentals Medium

25%

4.3
79 Spend difference between the last and the second last rentals Hard

16%

4.4
80 DoD revenue growth for each store Hard

19%

4.4
83 Top search_query in US and UK on new year's day facebook Medium

6%

4.2
88 Top song report spotify Medium

22%

4.2
90 Top artist report spotify Medium

21%

4.2
103 Median and average session duration by day of the week google Medium

20%

4.3
105 Number of days gap between last two actions google Hard

8%

4.2
108 Free premium membership amazon Hard

16%

4.1
109 Top 3 most popular product categories amazon Easy

11%

4.2
110 Most popular product by category amazon Medium

12%

4.2
113 Daily cumulative spend amazon Easy

11%

4.1
114 Dod revenue change rate amazon Easy

15%

4.4
115 Rolling average revenue amazon Hard

28%

4.1
116 Top answers day by device amazon Easy

14%

4.2
117 Rolling 7 days total answers amazon Easy

35%

4.1
119 Top 2 countries by bookings airbnb Hard

10%

4.2
120 First ever booking airbnb Hard

10%

4.2
121 Week over week change of first ever bookings airbnb Hard

14%

4.4
122 Top country by wow growth airbnb Hard

13%

4.2
123 Top listing in the United States, United Kingdom and Canada airbnb Medium

10%

4.2
127 Average rating after 10th trip uber Hard

11%

4.2
135 Unlucky employees robinhood Easy

16%

4.2
137 Extremely late first orders doordash Medium

9%

4.2
139 Poor first delivery experience doordash Medium

17%

4.2
141 Cumulative sales of restaurant 100011 doordash Hard

15%

4.1
142 First order date afterpay Easy

40%

4.2
144 Third order afterpay Medium

9%

4.2
145 Returning customers after first buy afterpay Hard

16%

4.2
147 2 days streak customers google Hard

13%

4.4
148 Most popular video category google Medium

13%

4.2
157 Number of trips before a driver got banned lyft Medium

10%

4.2
158 First trip completion rate lyft Medium

22%

4.2
165 Session stitching walmart Hard

17%

4.2
166 Top 10 customers based on spend growth walmart Medium

11%

4.2
180 Members moved from Microsoft to Google directly. linkedin Hard

21%

4.4
182 Top 5 content by number of watchers netflix Medium

9%

4.1
188 Top 1 popular question by department google Hard

14%

4.2
189 Campaign activation date twitter Medium

19%

4.1
195 MoM user growth snap Hard

14%

4.4
199 Students improvement snap Hard

67%

4.4
201 Top 3 students for each subject snap Hard

67%

4.2
203 Top product by country by month apple Hard

100%

4.2
208 Top 3 urls by testing groups apple Hard

10%

4.2
211 Top issuer by category visa Medium

30%

4.2
212 Highest spender's issuers visa Hard

0%

4.2
229 Time Between Repeat Purchases microsoft Hard - 4.4
230 Customer Purchase Trend Analysis microsoft Easy - 4.4

Disclaimer: SQLPad collects interview questions and sample data from public sources. We are not affiliated with the companies mentioned in these exercises. Please review our terms and conditions.