Загрузка данных


WHERE
    tpprc.contract_id = :contractId
    OR (
        tpprc.contract_id IS NULL
        AND NOT EXISTS (
            SELECT 1
            FROM prod_line.table_param_pl_redemption_coeff tpprc_contract
            WHERE tpprc_contract.contract_id = :contractId
        )
    )