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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
soumya shanbhag
NA
25
0
Select query problem for dates between different ranges
Dec 30 2009 4:14 AM
hi,
I am getting problem while selecting records for below mentioned query.
Select Min(TotalAvalablity) as TotalAvalablity from htl_FDRoomAvailability where REPLACE(CONVERT(varchar(50),ReserveDate, 101), ' ', '-')>='12/31/2009' and REPLACE(CONVERT(varchar(50),ReserveDate, 101), ' ', '-')<='01/01/2010'
Please any one help me why its showing null.If ReserveDate is between same year then its giving correct result.
Thanks,
Soumya
Reply
Answers (
3
)
How to install Sql Server 2008 for Client
Database queries