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

楼主: rrr0832 (rrr0832)   2018-01-20 03:59:09
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

Links booklink

Contact Us: admin [ a t ] ucptt.com