Link to home
Start Free TrialLog in
Avatar of EdwardPeter
EdwardPeter

asked on

query present day

Hi,

Kindly assist how can we query the data for present day?   select * from table1 where DTstart between getdate() and getdate() + 23:59:59

Thanks.
SOLUTION
Avatar of ill
ill
Flag of Slovakia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of r_a_j_e_s_h
r_a_j_e_s_h

u want the records where dates between today and tomorrow, IF IT IS SO
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Or more elegantly  
more ? for sure? :)
ill, snidey comments hurt

oh by the way

 dateadd( ss, 86400, convert( varchar(8), getdate(), 112 )) will return entries for the first second of the next day
what "snidey" means? i'm not from english speaking country.
keep smiley-ing ;)