dbTalk Databases Forums  

date column

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss date column in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kalyan
 
Posts: n/a

Default date column - 06-08-2005 , 12:51 PM






hi

in my table date value is 2005-05-30 16:40:00

In select statement, i want to compare with 05/30/2005

can anyone tell me how to use date column in where clause

thanks
kalyan


Reply With Quote
  #2  
Old   
JFB
 
Posts: n/a

Default Re: date column - 06-08-2005 , 03:10 PM






You are in the wrong workgroup... but
select *
from tableName
where convert(varchar(24), tableColumn, 101) = '05/30/2005'

Rgds
JFB

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi

in my table date value is 2005-05-30 16:40:00

In select statement, i want to compare with 05/30/2005

can anyone tell me how to use date column in where clause

thanks
kalyan




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.