2
Trans|Store|Date
1    | 10  |9/01/13
2    | 10  |9/01/13
3    | 20  |9/01/13
4    | 10  |9/02/13

私がクエリしようとしているのは

(日付 = 9/01/13)

Store|#Trans|Date
10   | 2    |9/01/13
20   | 1    |9/01/13

どうすればこれを実現できますか?

4

2 に答える 2

1

これを試すことができます:-

select store, count(*) as Transt from table
where Date = '9/01/13' 
group by store
于 2013-09-25T20:53:26.740 に答える