MySQL Forums
Forum List  »  Newbie

Re: Grouping query
Posted by: Peter Brawley
Date: November 20, 2019 04:15PM

Instead of ...Group_Concat(field_value SEPARATOR', ') as Children..., something like this?

  If( field_id=15, 
      Group_Concat(field_value SEPARATOR ', '), 
      '' 
    ) as Child15,
  If( field_id In(14,26,27), 
      Group_Concat(field_value SEPARATOR ', '), 
      '' 
    ) as "Child15-26-27"

Options: ReplyQuote


Subject
Written By
Posted
November 20, 2019 10:12AM
November 20, 2019 11:29AM
November 20, 2019 03:16PM
Re: Grouping query
November 20, 2019 04:15PM
November 21, 2019 10:54AM


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.