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


SELECT
    history.contract_id,
    history.pens_product_id,
    history.begin_date,
    history.end_date
FROM ourpension.contract_product_history history
WHERE history.contract_id = 13063250
ORDER BY history.begin_date DESC;