Code Snippet posted by:
Madhu.B.Rokkam | Posted on: 10/26/2012 | Category:
SQL Server Codes | Views: 437 | Status:
[Member] [MVP] |
Points: 40
|
Alert Moderator
Search records based on particular Date in sql
Select column1, column2, createdDate from tSearchTable
where DATEPART(month, dtmCreatedDate) = 10
and DATEPART(day, dtmCreatedDate) = 26
and DATEPART(year, dtmCreatedDate) = 2012
Thanks and Regards
Madhu