DATE IN SQL
SELECT * FROM Orders WHERE OrderDate='2008-11-11'
DATE IN SQL
SELECT * FROM Orders WHERE OrderDate='2008-11-11'
how to query date in sql server
select *
from events
where event_date between '2020-01-01' and '2020-01-31';
-- can include time by specifying in YYYY-MM-DD hh:mm:ss format:
select *
from events
where event_date between '2020-01-01 12:00:00' and '2020-01-01 23:30:00';
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us