hi..
i want to get distinct dates in my table. in my database table the dates are stored with time(same date will come with different time). so i want to get the distinct date only
my database table date format mentioned below:
2011-06-14 17:52:21.623.
2011-06-24 21:17:38.467
2011-06-20 19:34:18.840
2011-06-10 16:04:49.983
2011-06-17 17:47:24.670
2011-06-09 21:30:51.780
2011-06-08 20:21:58.700
2011-06-07 19:23:58.607
after getting the distinct dates , i will pass the dates and i want to get count value for each date.
i.e)
if i get 10 distinct date value then i want to get 10 rows for date count.
how to get the distinct dates and also i want to get count for those dates.
i need to handle this in a stored procedure.
how to handle this.
need ur suggetsions with examples..
regards
gopal.s