MySQL Forums
Forum List  »  Views

Re: Workaround for subquery limitation in in view creation
Posted by: Peter Brawley
Date: May 25, 2014 07:50PM

Like this?

select a.name, a.description, group_concat(b.subject) as subjects, group_concat(b.marks) as marks
from a
left join b using(name)
group by a.name, a.description;

Or this?

select a.name, a.description, group_concat( concat(b.subject,':',b.marks) ) as results
from a
left join b using(name)
group by a.name, a.description;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Workaround for subquery limitation in in view creation
1647
May 25, 2014 07:50PM


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.