Hello
Sqlserver MyTable has following data
Vou---------date---------qty
1-------25/12/2009------5
2-------25/12/2009------4
1-------26/12/2009------8
2-------26/12/2009------3
3-------26/12/2009------2
str = "SELECT date, SUM(Qty) AS Qty, FROM mytable GROUP BY Date"
dt = GetTable(str)
These codes display following result
date--------------qty
25/12/2009------9
26/12/2009------13
Now I want to add sno column in result as
Sno--------date---------qty
1------25/12/2009------9
2------26/12/2009------13
What command should in str command to get above result
Please help