Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 count records for particuar date

Author  Topic 

asifbhura
Posting Yak Master

165 Posts

Posted - 2007-11-20 : 02:49:06
hi
i have a table which has field name event_title, event_date

now i want to count all event for different different date (datewise)

how can i do so ?

please help me

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-11-20 : 02:55:18
[code]Select Event_Date, count(*)
from Table
Group By Event_Date[/code]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-20 : 03:07:10
Note that if event_date has time, then you need to omit it

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -