Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started
Building Stakeholder Dashboards
00:00
5 left

Building Stakeholder Dashboards

MediumSQL · PostgreSQL

Problem

What is your process for creating a dashboard that is both aesthetically pleasing and functional for non-technical stakeholders at WebMD Health?

For this SQL exercise, prepare a dashboard-ready summary from the provided WebMD Health surface and event data. Include active surfaces for the January 2025 reporting period, including surfaces with no recorded activity.

Output

  1. One row per active surface
  2. Columns: surface_name, total_sessions, page_views, engaged_sessions, and engagement_rate
  3. Include only January 2025 events, treat missing activity as zero, and order by engagement rate descending, then surface name ascending

Schema

dashboard_surfaces
ColumnTypeDescription
surface_idPKINTUnique identifier for a WebMD Health digital surface
surface_nameVARCHAR(100)Display name of the dashboard surface
is_activeBOOLEANWhether the surface should appear in the dashboard
dashboard_events
ColumnTypeDescription
event_idPKINTUnique event identifier
surface_idINTSurface associated with the event
session_idVARCHAR(30)Anonymous browsing session identifier
event_typeVARCHAR(30)Type of interaction recorded
occurred_atTIMESTAMPTimestamp when the event occurred
Tablesdashboard_surfacesdashboard_events
Interviewer

Whenever you're ready, walk me through your approach or go straight to the code. The requirements and the two tables are in the Question tab.

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