-- ## 14: Tickets by Reporter, then Change Time, sans Closed ## -- SELECT reporter, date_format(from_unixtime(changetime), '%b %e %Y %a') as 'Updated When . . .', id AS ticket, summary, component, version, milestone, t.type AS type, owner, status, date_format(from_unixtime(time), '%b %e %Y') as 'Created When', description AS _description FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' WHERE status <> 'closed' ORDER BY reporter, changetime desc, p.value, milestone, t.type