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 2000 Forums
 SQL Server Development (2000)
 Date Comarision problem please help

Author  Topic 

BuddyRam
Starting Member

17 Posts

Posted - 2007-07-16 : 06:21:48
Hello,
I have to compare the two time fields but I have to check the date part only.
I am using folloowing query:
Select convert(varchar(10),[date],103) from tbl_event where convert(varchar(10),[date],103)>= Convert(varchar(10),getdate(), 103);

but its not comaring correctly whem I am saying >= then it is giving all values from that table except matching date record.

some one can help in this reards

Cheers
Ram

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-16 : 07:02:39
duplicate of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=86421
locked.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -