Input: tickets
tickets
SELECT ticket_id, TIMESTAMPDIFF( DAY, opened_at, '2026-09-26 10:00:00' ) AS days_openFROM tickets;