I have a table generated by
Code:
SELECT FlightID, NumSeats, Status FROM FlightBooking ORDER BY FlightID
Which gives me the result
FlightID | NumSeats | Status
-----------------------------------
1 | 2 | R
2 | 4 | H
2 | 2 | R
3 | 3 | H
4 | 2 | R
4 | 4 | H
4 | 1 | R
5 | 1 | R
I'd like to combine these records so it displays only one row with 4, 3, R
And also If i want to insert a row (e.g. 1, 2, R) it will be added to existing the row (to give 1, 4, R)
Many thanks,