-
-
Save hashcc/14eae15c6e54890fe47fee4952445cd5 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 | |
recipes.ユーザーID, | |
count(レシピID) as レシピ投稿数, | |
つくれぽ投稿数 | |
from | |
recipes | |
full join | |
( | |
select | |
ユーザーID, | |
count(つくれぽID) as つくれぽ投稿数 | |
from | |
tsukurepos | |
group by | |
ユーザーID | |
order by | |
つくれぽ投稿数 desc | |
) as tsukurepos | |
on | |
recipes.ユーザーID = tsukurepos.ユーザーID | |
group by | |
ユーザーID | |
order by | |
ユーザーID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment