MySQL Forums
Forum List  »  General

Re: matrix sql query
Posted by: Peter Brawley
Date: June 18, 2020 10:52AM

Read about Group By, Aggregation and specifically Group_Concat() in the manual ...

select name, group_concat(privileges) as privileges
from tbl
group by name
order by nmae;

Options: ReplyQuote

Written By
June 18, 2019 07:38PM
Re: matrix sql query
June 18, 2020 10:52AM

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.