Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Ensuring Dashboard Accuracy
00:00
5 left

Ensuring Dashboard Accuracy

MediumSQL · PostgreSQL

Problem

How do you ensure the accuracy of your dashboards when reporting to senior leadership?

Translate this question into a SQL validation check for a T-Mobile US leadership dashboard. Compare dashboard metrics with independently aggregated source events and identify discrepancies.

Output

  1. One row per reporting date and market.
  2. Columns: metric_date, market, source_subscribers, source_data_gb, dashboard_subscribers, dashboard_data_gb, and validation_status.
  3. Include matching, mismatched, dashboard-missing, and source-missing records. Order by metric_date, then market.

Schema

network_usage_events
ColumnTypeDescription
event_idPKINTUnique network usage event identifier
event_dateDATEDate on which the usage event occurred
marketVARCHAR(50)T-Mobile US market associated with the event
subscriber_idVARCHAR(20)Subscriber associated with the usage event
data_gbDECIMAL(10,2)Data usage in gigabytes
tmobile_us_dashboard_metrics
ColumnTypeDescription
metric_datePKDATEDashboard reporting date
marketPKVARCHAR(50)Dashboard market
dashboard_subscribersINTSubscriber count displayed on the dashboard
dashboard_data_gbDECIMAL(10,2)Data usage displayed on the dashboard in gigabytes
Tablesnetwork_usage_eventstmobile_us_dashboard_metrics
Interviewer

Your question is Ensuring Dashboard Accuracy. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.