Link to home
Start Free TrialLog in
Avatar of equentin
equentin

asked on

SQL Query - Get Date Range

I want to return a recordset of results from just today ie:

SELECT * FROM tblLogUser WHERE LogDate =getDate()

getDate() includes the time, which I don't want, so how do I easily filter that out?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg 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 equentin
equentin

ASKER

Okay, that's kind of what I had already (it does have date portion), but I was wondering if there was anything a little more elegant.  Cheers!
not really.
I have on may servers/database a view/function that returns only the date portion, so it can be used in views/functions easily
Sorry, just noticed I hadn't accepted the solution - my apologies.