I have a query which is:
SELECT c.ID AS ClientID, c.name AS ClientName, f.ID AS ProjectID,f.formatName 
AS ProjectName,w.ID AS WaveID, w.wave AS WaveName, w.startDate AS StartDate, w.endDate AS 
Enddate
FROM clients AS c
INNER JOIN formats AS f ON f.clientID = c.ID
INNER JOIN waves AS w ON w.formatID = f.ID
WHERE c.ID =52
ORDER BY w.startDate
it has the output as follows
ClientID ClientName ProjectID ProjectName          WaveID WaveName StartDate  Enddate
      52 SilkBank         181 Eman Islamic            402 Wave-1   2014-01-13 2014-01-31
      52 SilkBank         180 Branch Banking          400 Wave-1   2014-01-13 2014-01-31
      52 Silk8ank         182 Middle Mkt. Branches    403 Wave-1   2014-01-13 2014-01-31
      52 SilkBank         182 Middle Mkt. Branches    413 Wave-2   2014-02-11 2014-02-28
      52 SilkBank         180 Branch Banking          412 Wave-2   2014-02-11 2014-02-28
      52 SilkBank         181 Eman Islamic            411 Wave-2   2014-02-11 2014-02-28
      52 SilkBank         181 Eman Islamic            428 Wave-3   2014-03-17 2014-03-31
      52 SilkBank         180 Branch Banking          430 Wave-3   2014-03-17 2014-03-31
      52 SilkBank         182 Middle Mkt. Branches    429 Wave-3   2014-03-17 2014-03-31
then i have grouped this by startDate and its output as follows:
ClientID ClientName ProjectID ProjectName          WaveID WaveName StartDate  Enddate
      52 Silk8ank         182 Middle Mkt. Branches    403 Wave-1   2014-01-13 2014-01-31
      52 SilkBank         181 Eman Islamic            411 Wave-2   2014-02-11 2014-02-28
      52 SilkBank         182 Middle Mkt. Branches    429 Wave-3   2014-03-17 2014-03-31
Now My question is when i grouped these waveID into single unit it only display the 403. and i want to get the grouped id's into an array or something.
So far i have found group by everywhere. don't know what this is called that;s why unable to search.
Any help!! Thanks
 
    