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 |
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 4 | |
♡ ♡ 1 5 | |
♡ ♡ 1 8 | |
♡ ♡ 1 9 | |
♡ ♡ 1 11 | |
♡ ♡ 1 12 | |
♡ ♡ 4 5 |
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 number1, number2, COUNT(1) AS cnt | |
FROM | |
( | |
SELECT n1.symbol,n2.symbol, n1.number AS number1, n2.number AS number2 | |
FROM | |
( | |
SELECT number, symbol | |
FROM trump_part | |
WHERE symbol!='joker' | |
) n1 |
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
number1 number2 cnt | |
1 8 3 | |
3 8 3 | |
3 13 3 | |
8 9 3 | |
8 11 3 | |
8 13 3 | |
1 3 2 | |
1 9 2 | |
1 11 2 |
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
アイテム1 アイテム2 共起回数 | |
1 8 3 | |
3 8 3 | |
3 13 3 | |
8 9 3 | |
8 11 3 | |
8 13 3 | |
1 3 2 | |
1 9 2 | |
1 11 2 |
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 アイテムID アイテムID | |
♡ ♡ 1 4 | |
♡ ♡ 1 5 | |
♡ ♡ 1 8 | |
♡ ♡ 1 9 | |
♡ ♡ 1 11 | |
◆ ◆ 1 12 | |
◆ ◆ 4 5 |
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.number, n2.number, n1.symbol, n2.symbol | |
FROM | |
( | |
SELECT symbol,number | |
FROM trump | |
) n1, | |
( | |
SELECT symbol,number | |
FROM trump | |
) n2 |
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
number number symbol symbol | |
0 0 joker joker | |
0 1 joker ♡ | |
0 1 joker ♣ | |
0 1 joker ♤ | |
... |
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.number, n2.number, n3.number, n1.symbol, n2.symbol, n3.symbol | |
FROM | |
( | |
SELECT symbol,number | |
FROM trump | |
) n1, | |
( | |
SELECT symbol,number | |
FROM trump | |
) n2, |
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
number number number symbol symbol symbol | |
0 0 0 joker joker joker | |
0 0 1 joker joker ♡ | |
0 0 1 joker joker ♣ | |
... |