-- ## 15: Tickets by Owner, then Change Time, sans Closed (copy) ## -- SELECT owner, date_format(from_unixtime(changetime), '%b %e %Y %a') as 'Updated When . . .', id AS ticket, summary, component, version, milestone, t.type AS type, reporter, 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 owner desc, changetime desc, p.value, milestone, t.type