Using mysql, Suppose my table looks like this:
| id | name | type
| 1 | name1 | type 1
| 2 | name2 | type 2
| 3 | name3 | type 2
| 4 | name4 | type 3
| 5 | name4 | type 4
| 6 | name5 | type 2
| 7 | name6 | type 3
I'd like to get all the rows from the table and group all of type 2 into a single row.
In this example it doesn't matter if the row is id 2 or 3.
The result should look like this:
| id | name | type
| 1 | name1 | type 1
| 3 | name3 | type 2
| 4 | name4 | type 3
| 5 | name4 | type 4
| 7 | name6 | type 3