MySQL Forums
Forum List  »  Newbie

Re: Join Issues
Posted by: Peter Brawley
Date: November 01, 2017 01:29PM

Is this what you're looking for?

select tx.id, tx.status, tx.starts, tx.started, tx.due, tx.resolved, x.`Dept-Reason`
from tickets tx
join (
  select t.id, group_concat(o.content order by o.customField) as 'Dept-Reason'
  from tickets t
  left join objectcustomfieldvalues o on t.id = o.objectid 
  group by t.id
) x using(id)
order by tx.id;

Options: ReplyQuote


Subject
Written By
Posted
November 01, 2017 11:19AM
Re: Join Issues
November 01, 2017 01:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.