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

Head-to-Head Record

For every pair of players who have met, return the player names (alphabetically ordered pair) and how many games each won against the other. Order by the pair.

Table schema

Games(id INT PRIMARY KEY, winner VARCHAR(10), loser VARCHAR(10))

Sample data

id | winner | loser
1 | A | B
2 | A | B
3 | B | A

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.