I receive an error which I don't understand. This is the part of the query in the WHERE clause which results in an error.
WHERE
CASE so.console_role
WHEN 'NONE' THEN so.orderid = '512'
ELSE so.console_id IN (select console_id from service_order where so.orderid
= '512')
Error:
ERROR: syntax error at end of input LINE 118:
Have someone an idea? Thanks in advance.
if.end.endstatement with this notation. Just a typo...