Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Did a bit of searching, but couldn't find it. I'm looking to get data from the past 7 days:select * from inquirywhere created_date is within the last 7 daysThanks,
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2007-01-24 : 11:29:05
[code]Select * from inquirywhere datediff(day, created_date, getdate())<=7[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"