This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

9 lines
426 B
SQL

SELECT
(select first_name||" "||last_name from Player where Matches.FK_playerOne=playerid) as "Player one",
(select first_name||" "||last_name from Player where Matches.FK_playerTwo=playerid) as "Player two",
Matches.matchdate as Matchdate,
(select first_name||" "||last_name from Player where Matches.winnerID=playerid) as Winner
From Matches
GROUP BY FK_playerOne,FK_playerTwo HAVING count(*)>1
ORDER BY Matches.matchdate