I will be very regretful if give me a proper solution of my question. From the following query I get the result as :
"select sp.MaintenceCode, sp.MDate, sp.PDes,sp.SPCode, s.SpareParts, " +
"em.EmpName as MaintainedBy, md.MachinaryName, sp.SPMCode "+
"from tblDailyMaintenceDetails dm "+
"inner join tblEmployeeInformation em on em.EmpCode=dm.EmpCode "+
"inner join tblSparePartsMaintenance sp on sp.MaintenceCode=dm.MaintenceCode "+
"inner join tblSpareParts s on s.SPCode=sp.SPCode "+
"inner join tblMachinaryDetails md on md.MDCode=dm.MDCode "+
"where md.MDCode='MDP-000001' and sp.MDate'15-May-2013' ";
The result is :
DMC-002 5/15/2013 not good SPC-000002 Cable HASNA BEGUM Toshiba SPM-000002
DMC-002 5/15/2013 not good SPC-000001 Motor HASNA BEGUM Toshiba SPM-000004
But I have to show this in crystal report like as follows :
DMC-002 5/15/2013 not good SPC-000002 Cable, Motor HASNA BEGUM Toshiba SPM-000002
How can I do this? Please help.