MySQL Forums
Forum List  »  PHP

Query Problem
Posted by: Fred Chung
Date: August 30, 2005 08:05PM

Is it possible to use one SQL to get the data from Table_A to form the output in table_B?

Table_A
+---------------------------------------+
| Name | Email |
+---------------------------------------+
| John | john@123.com |
| John | j_c@123.com |
| David | david@abc.com |
| David | david@123.com |
| David | dd123@123.com |
| Mary | mary@abc.com |
+---------------------------------------+

Result: Table_B
+---------------------------------------------------------+
| Name | Email |
+---------------------------------------------------------+
| John | john@123.com, j_c@123.com |
| David | david@abc.com, david@123.com, dd123@123.com |
| Mary | mary@abc.com |
+---------------------------------------------------------+

Options: ReplyQuote


Subject
Written By
Posted
Query Problem
August 30, 2005 08:05PM
August 31, 2005 01:43AM


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.