on 09-24-2014 9:10 AM
Dear All,
select gjahr,wtg001, wtg002, XYZ,
case
when wtg001 != 0 then concat(gjahr, '001')
wtg001 as XYZ <------------------------ Here i want value of wtg001 in XYZ
else
case
when wtg002 = 0 then concat(gjahr, '002') end end as gjahr
from cosp;
-Regards,
Amol
What is the question here?
Also: the AS <column alias> clause can only be used once per column projection definition and it mus be at the end of it.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.