Visa
Foundations Track · Easy · 15 min
Bidirectional Transfer Pairs
Visa is reviewing bidirectional transfer pairs through a trend check. Count unique transfer relationships regardless of direction. Return relationship_count.
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Visa-tagged business scenario.
Approach
Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.
Company context
Company labels are directional practice context, not official interview guidance.
Visa is reviewing bidirectional transfer pairs through a trend check. Count unique transfer relationships regardless of direction. Return relationship_count.
money_transfers
| transfer_id | sender_id | receiver_id |
|---|---|---|
| 1 | 10 | 20 |
| 2 | 20 | 10 |
| 3 | 10 | 30 |
| 4 | 30 | 40 |
| 5 | 40 | 30 |
| 6 | 10 | 20 |
SQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.