0
我有一個表與以下記錄:SQL計數來自同一列
BookingTimeStamp BookingReloc AEType
2016-01-14 23:19:24.773 LVWCQL Seat
2016-01-14 23:19:24.773 LVWCQL Seat
2016-01-14 23:19:24.773 LVWCQL Seat
2016-01-14 16:45:29.450 KCCEMG Baggage
2016-01-14 16:34:07.117 MEZYPN Insurance
2016-01-14 16:08:40.617 CJXDFK Insurance
2016-01-14 16:08:40.617 CJXDFK Insurance
2016-01-14 16:08:40.617 CJXDFK Insurance
2016-01-14 16:08:40.617 CJXDFK Insurance
2016-01-14 15:14:51.633 JMILRY Seat
我想要計數值的重複列AEType。
所需的輸出:
Seat = 4
Baggaage = 1
Insurance =5
是否有可能得到它在一個單一的查詢?
查看'group by'。 –