on 04-10-2019 10:54 AM
Hi experts,
In sql case statement is it possible to select all fields from a table and then write case in some of the fields that present in that same table without modifying the field name
Example:
SELECT a.* , FROM :lt_data as a LEFT OUTER JOIN :lt_manual AS b ON ( a.billing = b.vbeln );
and the want do case on "a.remark' field which is in structure 'A' without using 'AS" after 'END'
in my case it is giving error so please provide me alternate solution as i have almost 40 field in my output structure
or is there sql like select * fields except one filed from table..
LT_SCM = SELECT x.* , CASE x.kunnr WHEN NULL THEN a.CUSTOMER END as xcustomer FROM :lt_scm AS x RIGHT OUTER JOIN :lt_data AS a ON (x.kunnr = a.CUSTOMER) INNER JOIN :lt_manual AS b ON ( a.billing = b.vbeln );
alias (as xcustomer) is missing
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 | |
10 | |
9 | |
9 | |
7 | |
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.