Hi,

Suppose my data contain 2 column 
column A for code
column B for detail

data like this          
row           A               B    
1                               100                     AAAAAA
2                               100                     BBBBBB
3                               200                     AAAAAA
4                               300                     BBBBBB
5                               100                     CCCCCC
..                              ....                            .......


How to query for result like this

code count      detail
100             3               AAAAA,BBBBB,CCCCC
200             1               AAAAA
300             1               BBBBB
....            ...             .............


Thanks.
Kittiphum Worachat,MT.





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to