ptheriault
IS-IT--Management
I understand the DECODE() statement in it's basic form. But can anyone tell me what it is doing here?
DECODE(TA.POLICY_ID,'','N','Y') AS AGENCY_TERM
I thought it would select 'N' if the POLICY_ID is ''? But I don't understand the 'Y'.
DECODE(TA.POLICY_ID,'','N','Y') AS AGENCY_TERM
I thought it would select 'N' if the POLICY_ID is ''? But I don't understand the 'Y'.