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


select
    l.id,
    l.contract_number,
    l.individual_id,
    l.sum_tax_deduction,
    l.year
from ourpension.load_snv l
join tools.selection s
  on s.row_id = l.id
 and s.username = :username
 and s.code = :query_table_code
where l.file_id = :fileId