Paul Halliday Group expansion as part of the result
Mar 27, 2012; 14:23
Paul Halliday
Group expansion as part of the result
Say I have:
SELECT COUNT(name), name, COUNT(DISTINCT(status)) FROM table GROUP BY name
and it returns:
20 paul 5 19 john 2 75 mark 3
is there a way to return what comprises DISTINCT(status) as part of the result?
so:
20 paul 2,3,1,20,9 19 john 20,9 75 mark 1,20,9
Thanks.
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql
Mar 27
Dan Nelson Re: Group expansion as part of the result
Mar 27, 2012; 13:43
Dan Nelson
Re: Group expansion as part of the result
Mar 27
Paul Halliday Re: Group expansion as part of the result
Mar 27, 2012; 21:58
Paul Halliday
Re: Group expansion as part of the result
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!