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 |
|
ksanjamala
Starting Member
1 Post |
Posted - 2010-09-27 : 16:27:00
|
| Greetings.I'm sure this is an easy one, but I'm pulling my hair out over it.I'm working with a database (RAPID SQL) in which the DATE is stored as DATETIME. I need to write a SELECT statement that computes the days from TODAY to 4 DAYS BACK.for example, I WANT TO SELECT THE RECORDS WHICH ARE ENTERED 4 DAYS AGO.select * from TABLE where COLUMN_NAME = getDATE()- 4 I hope I've described the question properly, and thanks in advance for the help.Vinay |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2010-09-27 : 17:01:02
|
| RAPID SQL? Is this a Microsoft SQL Server database?CODO ERGO SUM |
 |
|
|
|
|
|