-
Help
Could someone tell me what this statement is doing?
AND CASE WHEN pcl.clec_dspch_type_cd = ''ZZZZZZ''
THEN ''ZZZZZZ''
ELSE DECODE(SUBSTR(pcl.clec_dspch_type_cd, 4, 1), NULL, SUBSTR(dm.dspch_type_cd, 1, 3)
, DECODE(dm.prod_id, 1, ''ZZZZZZ'', dm.dspch_type_cd))
END = pcl.clec_dspch_type_cd
-
I'm guessing that the section "pcl.clec_dspch_type_cd = ''ZZZZZZ''" is only there so that the else clause would fire when code ZZZZZZ does not appear. Its way to filter the logic based on the data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|