字段AA BB cc aa bb cc 李小姐 苹果 55 李小姐 香蕉 120 求李小姐吃哪种水果最多。
select top 1 * from tb where aa='李小姐' order by cc desc
select * from tb t where not exists (select 1 from tb where aa = t.aa and cc > t.cc)
34,590
社区成员
254,589
社区内容
加载中
试试用AI创作助手写篇文章吧