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 |
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2013-02-24 : 22:17:28
|
i would like to get yesterday's dateYesterdayDate= DATEADD(Day,-1,Cast(getdate() as Date))hit this error:Type Date is not a defined system type. |
|
theKid27
Starting Member
21 Posts |
Posted - 2013-02-24 : 22:41:28
|
Hope this helps SELECT DATEADD(day,-1, GETDATE() ) AS "YesterdayDate" |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2013-02-24 : 23:01:33
|
is in where condition |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|