use*_*950 -2 sql sql-server
请帮助我,如何使用Distinct和Count关键字一起使用. 使用Distincton columnA和Counton columnB.
Distinct
Count
columnA
columnB
Pat*_*man 6
您应该使用group by而不是distinct:
group by
distinct
select columnA , count(columnB) from tableX group by columnA
归档时间:
11 年,9 月 前
查看次数:
65 次
最近记录: