anorthcote
Programmer
Hi,
I'm wanting to do a query with a group by statement to group some text field together and can't think of a way to do it. Have a look at my sample data below
orderid Detail
26146 Attendnace on 27/11/06 to repair fire alarm
26147 Key holding fee 01/07/06 - 30/06/07
26148 Hardware Maintenance 13/10/06 - 12/10/06
26148 Software Maintenance 13/10/06 - 12/10/06
I want to concatenate the detail field to get just one entry per orderid as follows
orderid Detail
26146 Attendnace on 27/11/06 to repair fire alarm
26147 Key holding fee 01/07/06 - 30/06/07
26148 Hardware Maintenance 13/10/06 - 12/10/06, Software Maintenance 13/10/06 - 12/10/06
I hope this makes sense and is possible in SQL.
Thanks for your help.
Andrew
I'm wanting to do a query with a group by statement to group some text field together and can't think of a way to do it. Have a look at my sample data below
orderid Detail
26146 Attendnace on 27/11/06 to repair fire alarm
26147 Key holding fee 01/07/06 - 30/06/07
26148 Hardware Maintenance 13/10/06 - 12/10/06
26148 Software Maintenance 13/10/06 - 12/10/06
I want to concatenate the detail field to get just one entry per orderid as follows
orderid Detail
26146 Attendnace on 27/11/06 to repair fire alarm
26147 Key holding fee 01/07/06 - 30/06/07
26148 Hardware Maintenance 13/10/06 - 12/10/06, Software Maintenance 13/10/06 - 12/10/06
I hope this makes sense and is possible in SQL.
Thanks for your help.
Andrew