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
id id pair | |
m1 m2 m1 ♥ m2 | |
m1 w1 m1 ♥ w1 | |
m1 w2 m1 ♥ w2 | |
m1 w3 m1 ♥ w3 | |
m2 w1 m2 ♥ w1 | |
m2 w2 m2 ♥ w2 | |
m2 w3 m2 ♥ w3 | |
w1 w2 w1 ♥ w2 | |
w1 w3 w1 ♥ w3 |
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.id, n2.id, n1.id || ' ♥ ' || n2.id | |
FROM | |
( | |
SELECT id, gender | |
FROM men_and_women | |
) n1 | |
JOIN | |
( | |
SELECT id, gender | |
FROM men_and_women |
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
id id pair | |
m1 w1 m1 ♥ w1 | |
m1 w2 m1 ♥ w2 | |
m1 w3 m1 ♥ w3 | |
m2 w1 m2 ♥ w1 | |
m2 w2 m2 ♥ w2 | |
m2 w3 m2 ♥ w3 |
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
symbol,number | |
diamond,1 | |
... | |
diamond,13 | |
spade,1 | |
... | |
spade,13 | |
heart,1 | |
... | |
heart,13 |
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
symbol,number | |
♦,1 | |
... | |
♦,13 | |
♤,1 | |
... | |
♤,13 | |
♣,1 | |
... | |
♣,13 |
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 | |
WHERE symbol!='joker' | |
) n1 | |
JOIN | |
( | |
SELECT number, symbol |
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 | |
WHERE symbol!='joker' | |
) n1 | |
JOIN | |
( | |
SELECT number, symbol |
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
symbol symbol number number | |
♡ ♡ 1 2 | |
♡ ♡ 1 3 | |
... | |
♡ ♡ 1 13 | |
♡ ♡ 2 3 | |
... |
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
symbol symbol number number | |
♡ ♣ 1 1 | |
♡ ♣ 1 2 | |
... | |
♡ ♣ 2 1 | |
... |
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
symbol,number | |
♦,1 | |
♦,3 | |
♦,6 | |
♦,8 | |
♦,10 | |
♦,11 | |
♦,13 | |
♤,1 | |
♤,3 |