By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,275 Members | 1,924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,275 IT Pros & Developers. It's quick & easy.

SQL query filtering date field by today's date?

P: n/a
Can someone tell me sql query for filtering date field for current day,
not last 24hours but from 00:00 to current time?

Nov 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
select *
from mytable
where datediff(day,getdate(),col)=0 and col <= getdate()

Nov 3 '06 #2

P: n/a

ma******@hotmail.com wrote:
select *
from mytable
where datediff(day,getdate(),col)=0 and col <= getdate()
I forgot that i posted this :), thanks for your reply.

Nov 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.