CREATE TABLE doctor( patient CHAR(13), docname CHAR(30) );
Say I had a table like this, then how would I display the names of the doctors that have
Here's another alternative that only has one subquery instead of two:
SELECT docname FROM author GROUP BY name HAVING COUNT(*) = ( SELECT COUNT(*) AS c FROM author GROUP BY name ORDER BY c DESC LIMIT 1 )