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 |
ricky_1605
Starting Member
30 Posts |
Posted - 2011-06-03 : 00:53:42
|
Hey guysI want to retrieve psat 1 week's data from system date. Please help me with the query.ThanksNipun Chawla |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-06-03 : 01:07:16
|
[code]where date_column > dateadd(day, datediff(day, 0, getdate()), -7)[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
ricky_1605
Starting Member
30 Posts |
Posted - 2011-06-03 : 01:32:57
|
Thanks a lot it worked.Nipun Chawla |
 |
|
|
|
|