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 |
|
gavakie
Posting Yak Master
221 Posts |
Posted - 2008-03-25 : 09:06:50
|
| This is my codeSelect Sum(Cost) as Cost, Case When PymtRmID = 'Net 10' then (TodaysDate)+10 else pymtrmid endFrom #ttNonWiresGroup By Case When PymtRmID = 'Net 10' then (TodaysDate)+10 else pymtrmid end Im trying to show obviousally when something when PYMTRMID says net10 i want todaydate +10 days in the column next to it i keep getting Server: Msg 241, Level 16, State 1, Line 1Syntax error converting datetime from character string. |
|
|
ranganath
Posting Yak Master
209 Posts |
Posted - 2008-03-25 : 09:16:55
|
| Hi,Use DateAdd(day,10, GEtdate()) instead of (TodaysDate)+10 |
 |
|
|
|
|
|