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 |
usafelix
Posting Yak Master
165 Posts |
Posted - 2015-02-11 : 21:54:37
|
Anyone can help ! I want to change query to show this message "non active customer" and "active customer". ------------------------------------------------------------current query case when trx_date < dateadd(month, -3, getdate()) then trx_date else null end as "Non Active Member",-----------------------------------------------------------my query but not work , please help to edit my query ,, Thanks case when trx_date < dateadd(month, -3, getdate()) then "non active customer "+trx_date else "active customer"+null end as result |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-02-11 : 21:56:50
|
[code]case when trx_date < dateadd(month, -3, getdate()) then 'non active customer ' + (convert(varchar(20), trx_date) else 'active customer' end as result[/code]Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|