Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
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
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess 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
Build my plan
BI, Visualization, and SQL
00:00
5 left

BI, Visualization, and SQL

MediumSQL · PostgreSQL

Problem

Describe your experience with data business intelligence and visualization, including how you use SQL.

Use the supplied data to demonstrate a BI-ready query that summarizes active facilities and their completed survey performance for Q1 2025. Include facilities without qualifying responses so the result can support an accurate visualization.

Output

  1. One row per active facility, with facility_name, region, completed_responses, top_box_responses, average_rating, and top_box_percentage.
  2. Include only completed responses submitted from 2025-01-01 through 2025-03-31.
  3. Sort by top_box_percentage descending, completed_responses descending, then facility_name ascending.

Schema

facilities
ColumnTypeDescription
facility_idPKINTUnique facility identifier
facility_nameVARCHAR(150)Display name of the facility
regionVARCHAR(50)Geographic reporting region
activeBOOLEANWhether the facility is active for reporting
survey_responses
ColumnTypeDescription
response_idPKINTUnique survey response identifier
facility_idINTFacility associated with the response
submitted_atTIMESTAMPTimestamp when the response was submitted
statusVARCHAR(20)Response processing status
overall_ratingINTOverall survey rating from 1 to 5
Tablesfacilitiessurvey_responses
Interviewer

Your question is BI, Visualization, and SQL. 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
Sign up free to run your codeLog inLn 1
Run your query to see results here.