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 related query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-06-22 : 07:35:48
salil writes "i have a table which has one field of type datetime.

e.g. table name : temp
field name : temp_date

now i want build simple query
e.g select * from temp where temp_date = '8 jan 2001'

when i execute above query, it returns zero records even though there are records for 8 jan 2001.

i know this is because i am not passing time part in query.
but this is what my requirement is.
i want to pass only date part.

how would i get it?
plse help.

waiting for u'r reply
thank u very much

-salil"
   

- Advertisement -