J
|
Jane 7/22/2009 |
Joe, |
|
1312 7/22/2009 |
Joe, GETDATE() function returns current date and time. I suppose you need to compare date, not date and time in your SQL query. Check this article: http://www.w3schools.com/SQl/func_convert.asp
|
J
|
Jane 7/23/2009 |
Hi, |
|
1312 7/28/2009 |
Hi, here is a sample:
|
|
1312 7/28/2009 |
Jane, When I add this to the SQL statement, it shows no records found although there are several. Any suggestions? Thanks Joe
|
J
|
Jane 7/29/2009 |
It's difficult to tell you what's happening without seeing actual files. |
C
|
clig 8/4/2009 |
This is what I am using: SELECT SERVICE, CALL_NO, PRIORITY, PRIMARY_UNIT, LOCATION_ADDRESS, APARTMENT, LOCATION_INFO, BEAT_OR_STATION, CALL_CLOSE_TIME, CALL_TYPE_FINAL_D, CALL_CREATED_DATE, CALL_CREATED_TIME, CALLKEY, CAD_CALLKEY FROM dbo.CarsCall WHERE CALL_CLOSE_TIME IS NULL and datediff(day,CALL_CREATED_DATE,GETDATE())=0 ORDER BY PRIORITY, BEAT_OR_STATION
|