Hi Vijay!
Thanks for the immediate response.
Anyway, I have the following SQL statement generated by MS Access 2K.
TRANSFORM Sum(dbo_btBatchDailyActual.BDAQuantity) AS SumOfBDAQuantity
SELECT dbo_btBatchDailyActual.IONumber, dbo_btBatchDailyActual.MONumber, dbo_btBatchDailyActual.BatchNumber, Sum(dbo_btBatchDailyActual.BDAQuantity) AS [Total Of BDAQuantity]
FROM dbo_btBatchDailyActual
GROUP BY dbo_btBatchDailyActual.IONumber, dbo_btBatchDailyActual.MONumber, dbo_btBatchDailyActual.BatchNumber
PIVOT Format([BDADate],"Short Date");
I tried to execute this statement in Query Analyzer but it failed. I just thought that this code can't be easily executed in Query Analyzer and will need some revisions.
I was just thinking of the possible equivalent of the statement above in T-SQL.
-Dhodie
|