Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表,我想显示使用 SQL 查询记录最多的 3 个名称(Ted、Ringo、Paul)。这是一个原始问题,但请帮助我。
我的桌子:
SELECT TOP 3 Name FROM YourTable GROUP BY Name ORDER BY COUNT(*) DESC