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


SELECT
    c.id AS contract_id,
    c.number,
    c.service_type,
    cp.form_id
FROM ourpension.contract_params cp
JOIN ourpension.contract c
    ON c.id = cp.contract_id
ORDER BY c.id DESC
LIMIT 20;