0
我想這個問題轉移到活動記錄:如何在活動記錄中執行此操作?
的SQL語句我想轉讓:
SELECT user.name, user.subject
FROM user
INNER JOIN (
SELECT name, COUNT(1) AS occurrences
FROM user
GROUP BY name
) AS user_occurrences
ON user.name = user_occurrences.name
ORDER BY user_occurrences.occurrences DESC, user.name ASC, user.subject ASC
LIMIT 4
How to write this SQL statement?
我可以加入表,但我怎麼可以創建一個新的活動記錄中的表?謝謝。
@@「爲什麼活動記錄如此有限。 – DNB5brims