on 02-24-2016 9:04 AM
Hello Everyone,
I am trying to load following query in I5 Grid layout.But, its giving ORA00936 error as missing expression.
Please help me with this.
Query:
SELECT A.ID AS NAME,
REGEXP_SUBSTR (B.ORDER, '[^,]+', 1, 2) AS FIRST_ORDER,
REGEXP_SUBSTR (B.ITEM, '[^,]+', 1, 2) AS MATERIAL,
(CASE WHEN COUNT(CASE WHEN C.STATE = 'O' THEN 1 ELSE null END)>0 THEN 'OPEN' ELSE 'CLOSED' END) AS COUNT,
FROM A
LEFT JOIN B
ON A.ID= B.NAME
FULL OUTER JOIN C
ON SUBSTR(C.NC_CONTEXT_GBO,12)=A.ID
where A.ID IN ([Param.1])
group by A.ID, B.ORDER,B.ITEM
Hi Deepali,
I second Sai for his observation, remove comma.
If you get "ORA00936 error as missing expression", it's a syntax error. Check through your query once again and sanitize.
Regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepali,
Try removing comma after COUNT and check?
Also if Param.1 is a string, then change it to where A.ID IN ('[Param.1]')
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.