I am unable to extract data according to date in sql server,
what I exactly want is count of the data on every date, i.e data count according to date.
what I exactly want is count of the data on every date, i.e data count according to date.
Thanks in advanced!!
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

HanookPosted Nov 21, 2013, 1:31 AM
from TableName
group by Cast ( DateColumn aS DATE)
depends on DateColumn.. if that is DATETIME type convert it to DATE and then apply GROUP BY....
Girish SapariyaPosted Nov 20, 2013, 6:38 AM
select COUNT(*) from TableName where dateColumn = '2014-11-07'
date format for sql server = YYYY-MM-DD
Jaganathan BantheswaranPosted Nov 20, 2013, 6:38 AM
select COUNT(*) as 'Data Row Count', ShippedDate from Orders group by ShippedDate