Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
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 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
Build my plan
Excel and Tableau Storytelling
00:00
5 left

Excel and Tableau Storytelling

MediumSQL · PostgreSQL

Problem

How would you use Excel to manipulate data and Tableau to tell a story with the data at Kaiser Permanente?

Write a PostgreSQL query that produces a Tableau-ready summary of Kaiser Permanente encounters during the first quarter of 2025.

Output

  1. One row per month, facility, and service line, including unmatched lookup values as Unknown.
  2. Columns: month, facility_name, service_line_name, encounter_count, completed_count, and completion_rate_pct.
  3. Include only encounters from January 1 through March 31, 2025, and order by month, facility, then service line.

Schema

encounters
ColumnTypeDescription
encounter_idPKINTUnique encounter identifier
facility_idINTReferenced facility identifier
service_line_idINTReferenced service line identifier
encounter_dateDATEDate of the encounter
statusVARCHAR(40)Encounter completion status
facilities
ColumnTypeDescription
facility_idPKINTUnique facility identifier
facility_nameVARCHAR(100)Facility display name
service_lines
ColumnTypeDescription
service_line_idPKINTUnique service line identifier
service_line_nameVARCHAR(100)Service line display name
Tablesencountersfacilitiesservice_lines
Interviewer

Your question is Excel and Tableau Storytelling. Start with the requirements and the three 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.