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
Validate Monthly Financial Report Accuracy
00:00
5 left

Validate Monthly Financial Report Accuracy

MediumSQL · PostgreSQL

Problem

Validate January 2024 posted revenue reports by comparing each Sunshine Health business unit's reported amount to the sum of underlying revenue ledger entries. Return the reported amount, calculated amount, variance, and a status that distinguishes exact matches, mismatches, and missing ledger support.

Schema

financial_reports
ColumnTypeDescription
report_id
report_month
business_unit
reported_revenue
status
gl_entries
ColumnTypeDescription
entry_id
posted_date
business_unit
account_code
amount
account_map
ColumnTypeDescription
account_code
account_category

Representative Rows

gl_entries
22024-01-05Medicare40001000.00
32024-01-10Medicare4010500.00
52024-01-18Marketplace5000-50.00
account_map
4000Revenue
4010Revenue
5000Expense
financial_reports
1012024-01-01Medicare1500.00POSTED
1022024-01-01Marketplace1200.00POSTED
1042024-01-01Specialty700.00POSTED
Tablesfinancial_reportsgl_entriesaccount_map
Interviewer

Your question is Validate Monthly Financial Report Accuracy. 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.