harismitacbe Posted January 11, 2023 Posted January 11, 2023 I am using a paramter in case when. Paramter :but getting this error. please help. really stuck with this for 2 days :( Thanks
shreekrishna.shankhwar Posted January 12, 2023 Posted January 12, 2023 If you can give Query then i can give a try and i hope you are not passing a array of string on multiple string value to above Parameter and single value should be passed in the parameter. Sorry to disappoint you but your query is wrong according to me . Just try with this way SUM( case $P{OBLIG}WHEN 'ALL' THEN abs( A.recoveryamount/10000000)WHEN 'Delivery' THEN B.deliveryWHEN 'premium' THEN B.premiumWHEN 'excercise/assignment' then B.excercisean so on ) you can do subquery after THEN for 1st calculation part if its mysql or postgre etc. One point to note down each field null value should be handled number column should contain null value
harismitacbe Posted April 18, 2023 Author Posted April 18, 2023 Thanks. Still I got SQL execution error. When tried with Stored procedure its working.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now