Created
April 23, 2015 05:25
-
-
Save doryokujin/ed09cd3b6a427221bb0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT n1.symbol,n2.symbol, n1.number, n2.number | |
FROM | |
( | |
SELECT number, symbol | |
FROM trump_part | |
WHERE symbol!='joker' | |
) n1 | |
JOIN | |
( | |
SELECT number, symbol | |
FROM trump_part | |
WHERE symbol!='joker' | |
) n2 | |
ON n1.symbol = n2.symbol | |
HAVING n1.number < n2.number | |
ORDER BY n1.symbol, n2.symbol, n1.number, n2.number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment