作者rrr0832 (rrr0832)
看板Database
标题[MySQL] Select the row which one of the ...
时间Sat Jan 20 03:59:09 2018
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://webptt.com/cn.aspx?n=bbs/Database/M.1516391952.A.A35.html