TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Getting Accurate Records between two dates from the Table of MS SQL SERVER
Raju Katare
Apr 04, 2012
4.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
To Get Accurate Records between two dates from the Table of MS SQL SERVER.
By using following query we will get desired results
SELECT
*
FROM
myTable
WHERE
convert(nvarchar,dateColumn,112)>=convert(nvarchar,fromDate
,112)
AND
convert(nvarchar,
dateColumn
,112)<=convert(nvarchar,toDate
,112)
To Get Accurate Records
Next Recommended Reading
Get number of days between two dates in sql