MySQL Forums
Forum List  »  Newbie

Re: Grouping query
Posted by: reg purchase
Date: November 21, 2019 10:54AM

Peter

That doesn't work I'm afraid as every row has a field_id=15 so the result of the first if statement returns the same result as the concatenated field_value.

However I've figured out a way to 'chop up' the string and assign the substrings to new columns within the reporting software that I'm running the query in.

You could probably do similar within SQL using string functions like FIND_IN_SET() and INSTR() and similar.

Thanks again for the earlier steer with the concatenation.

Options: ReplyQuote


Subject
Written By
Posted
November 20, 2019 10:12AM
November 20, 2019 11:29AM
November 20, 2019 03:16PM
November 20, 2019 04:15PM
Re: Grouping query
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.