[MySQL] Select the row which one of the ...

看板Database (資料庫)作者 (rrr0832)時間6年前 (2018/01/20 03:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
If there is a table name "example" like below: http://i.redwh.al/Ef.png
How do I select the name which "No" has the most occurrence in other rows' "Id "? Here's my try: http://i.redwh.al/Ld.png
The result should be like this: http://i.redwh.al/T7.png
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.175.87 ※ 文章網址: https://www.ptt.cc/bbs/Database/M.1516391952.A.A35.html
文章代碼(AID): #1QOauGer (Database)
文章代碼(AID): #1QOauGer (Database)