on ‎2016 Dec 01 9:53 AM
Hi,
it is possible execute a recursive SQL command? CTE or something else?
I want to calculate multiple columns, each based on the previous column...
Thanks!
Request clarification before answering.
Hi,
SAP HANA supports CTE but not recursive SQL (no DECODE too).
The only way to do this is via SQL Script table variables (if restricted/defined in levels) procedural (Looping if indefinite levels or complex nesting rendering difficult maintenance in the future) or via separate Wrapper & Executor procedures.
Refer https://archive.sap.com/discussions/thread/3384059 for more information.
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.