Mysql
SELECT DISTINCT i.PROJECT, MIN(i.UPDATED) as "Last Updated", p.pnameFROM jiraissue iINNER JOIN project pON p.ID = i.PROJECTGROUP BY i.PROJECT, p.pnameORDER BY MIN(i.UPDATED) ASC, i.PROJECT, p.pname;