Hi all,
I have one table containing date and varioous other columns.
table
id run todate comment
1 fgdsg 11/05/2006 fghfdg
2 hjghjk 06/05/2006 rgrdtg
3 bhjhgjhgj 11/05/2006 gfhfghgfh
I have written a query to get total according to date. I.e
SELECT ESM.todate, Count(ESM.todat e) AS CountOftodate
FROM ESM
GROUP BY ESM.todate;
O/P
todate CountOftodate
06/05/2006 1
11/05/2006 2
I want the query such that it o/p for each date from min to max todate.
I.e
todate CountOftodate
06/05/2006 1
07/05/2006 0
08/05/2006 0
09/05/2006 0
10/05/2006 0
11/05/2006 2
I have one table containing date and varioous other columns.
table
id run todate comment
1 fgdsg 11/05/2006 fghfdg
2 hjghjk 06/05/2006 rgrdtg
3 bhjhgjhgj 11/05/2006 gfhfghgfh
I have written a query to get total according to date. I.e
SELECT ESM.todate, Count(ESM.todat e) AS CountOftodate
FROM ESM
GROUP BY ESM.todate;
O/P
todate CountOftodate
06/05/2006 1
11/05/2006 2
I want the query such that it o/p for each date from min to max todate.
I.e
todate CountOftodate
06/05/2006 1
07/05/2006 0
08/05/2006 0
09/05/2006 0
10/05/2006 0
11/05/2006 2
Comment