Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Duplicate Charges on the Same Day

Return the card, amount and date for charges that occur more than once with the same card and amount on the same day, together with the number of occurrences.

Table schema

Charges(id INT PRIMARY KEY, card VARCHAR(10), amount INT, charge_date DATE)

Sample data

id | card | amount | charge_date
1 | C1 | 50 | 2026-10-01
2 | C1 | 50 | 2026-10-01
3 | C1 | 20 | 2026-10-01
4 | C2 | 50 | 2026-10-01

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.