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


select
    count(*) as total_rows,
    count(*) filter (where contract_id is not null) as contract_rows,
    count(*) filter (where contract_id is null) as product_rows
from prod_line.table_param_pl_redemption_coeff;