Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Diagnose Invoice Discrepancies by Vendor
00:00
5 left

Diagnose Invoice Discrepancies by Vendor

MediumSQL · PostgreSQL

Problem

You are comparing staged invoice data against ERP invoice records used in Valmont Industries finance reporting. Write a PostgreSQL query that surfaces discrepancy patterns by vendor and invoice month, including missing ERP matches, amount mismatches, date mismatches, and duplicate staged invoices.

Schema

Tables
  • vendors
  • erp_invoices
  • staged_invoices
Tablesvendorserp_invoicesstaged_invoices
Interviewer

Your question is Diagnose Invoice Discrepancies by Vendor. 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
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.