SQL Serverでグループ化に問題があります。SQL Serverでグループ化するグループ
私はdatetime
列を持っているが、私は日付のみでグループ化したい、
は、ここに私のコード
SELECT ProductCode,
ProductName,
ProductType,
UnitPrice,QTY,
Amount,
(convert(varchar, TransactionDate, 101))AS sTransactionDate
FROM DailyTransactions
GROUP BY TransactionDate, ProductCode,
ProductName,ProductType,UnitPrice,QTY,Amount
RESULTです:それは異なる時間を持っているので
2/17/2012
が3回表示されます...