SQL Queries and Analysis on Bad Advertisers
TikTokData Scientist · Technical ScreenLast updated
This question evaluates SQL query writing, metric definition and normalization, ranking/aggregation techniques, and analytical reasoning for identifying problematic advertisers.
Scenario
You are part of the analytics team at TikTok and are tasked with analyzing the presence of bad content on the platform, particularly focusing on adverts.
Question 1
Write an SQL query to define and identify what constitutes a 'top bad advertiser'. Consider factors such as the number of reports an advertiser receives and other relevant ranking metrics.
Question 2
Given the information that there is a positive correlation between ad page visits and reports on that ad being bad, outline your approach to investigate the reasons behind this correlation. What would be your hypothesis?
Hints
Consider how you would capture and rank bad advertisers using available data.
Reflect on potential reasons for the positive correlation (e.g., higher visibility leading to more scrutiny).
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.