Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2008-06-26 : 14:00:21
|
| I want to query out all records in the last houri'm doingSELECT * from images where datetime>DATEADD(hh, -1, datetime) order by id what am i doing wrong - it's returning more then the last hour |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-06-26 : 14:03:01
|
| SELECT * from images where datetime>DATEADD(hh, -1, Getdate()) order by idMadhivananFailing to plan is Planning to fail |
 |
|
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2008-06-26 : 14:23:51
|
| thanks..silly mistake |
 |
|
|
|
|
|