SELECT COUNT (*) AS NUM FROM UN_INSPB_CASE_DOCUMENT
The WHERE (SELECT
CASE
The WHEN
(UN02_DOCUMENT_TYPE='A - FR) THEN
'UN02_CASOU_NUM' ELSE 'UN02_CASE_NUM'
END
The FROM
UN_INSPB_CASE_DOCUMENT WHERE UN02_CASE_NUM='8362 b4efaffd448bb6e91cea77026647'
AND UN02_DOCUMENT_TYPE='A - FR
ATF AND UN02_DOCUMENT_CODE=' ')='PAF (no00002 PAF1995/2 a REPARTI?? O FISCAL/1996) '
The SQL what's the problem, why we didn't get what I want