A major investment bank needs to identify potentially fraudulent card...
A major investment bank needs to identify potentially fraudulent card transactions by detecting accounts that have both (1) made high-value transactions (>$10,000) in multiple different branches within the same day, AND (2) had their card used for transactions totaling more than $50,000 across all branches in that same day. For each suspicious account, return the account_id, cardholder_name, suspicious_date, total_daily_amount, branch_count (number of different branches used that day), and max_single_transaction. Results should be ordered by total_daily_amount descending, then by account_id ascending for ties.
Example 1
Example 2
- ›Return accounts with high-value transactions (>$10,000) in multiple branches on same day
- ›Total daily amount must exceed $50,000
- ›Include cardholder_name, suspicious_date, total_daily_amount, branch_count, max_single_transaction
- ›Order by total_daily_amount DESC, then account_id ASC
Reference solution available after you attempt the question.
Ready to solve it?
Start a session on Mockbit #64. Write your SQL, run it against real data, and get graded on correctness, efficiency, query structure, and business understanding.
- #42A video streaming platform tracks user viewing sessionshard
- #62FitFlex gym chain tracks member gym attendance through entry card swipeshard
- #63A streaming platform wants to identify episodes that are experiencing...hard
- #41You're analyzing user engagement for a social media platformeasy
- #43A regional bank wants to analyze account activity by branch locationeasy