Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Find Duplicate Payment Transactions
00:00
5 left

Find Duplicate Payment Transactions

EasySQL · PostgreSQL

Problem

You are given transaction data from an Accenture payment reconciliation workflow. Write a SQL query to find duplicate transaction records in the transactions table, where a duplicate means multiple rows share the same account_id, merchant_name, transaction_date, and amount. Return those duplicate groups along with how many times each duplicate appears.

Schema

transactions
ColumnTypeDescription
transaction_idPKINTUnique transaction row identifier
account_idINTAccount associated with the transaction
merchant_nameVARCHAR(100)Merchant name for the transaction
transaction_dateDATEDate the transaction occurred
amountDECIMAL(10,2)Transaction amount
statusVARCHAR(20)Processing status of the transaction
Tablestransactions
Interviewer

Your question is Find Duplicate Payment Transactions. Start with the requirements and the one table 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.