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
 Transact-SQL (2000)
 date sql help

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2006-09-04 : 01:54:12
how can I

select * from mytable where datereceived is in may 2006
for example?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-09-04 : 01:58:34
[code]
select *
from mytable
where datereceived >= '20060501'
and datereceived < '20060601'
[/code]


KH

Go to Top of Page
   

- Advertisement -