I want to see unique descritions for each collection_id. It'd be okay if names are duplicate but descriptions can not be allowed. I tried disctinct but it doesn't allow me to select all the columns.
| id | collection_id | description | name |
|---|---|---|---|
| 1 | 12 | ABC | X |
| 2 | 13 | ABD | Y |
| 3 | 12 | ABC | X |
| 4 | 13 | LMN | Y |
| 5 | 14 | OPQ | X |
| 6 | 14 | OPQ | Y |
To this
| id | collection_id | description | name |
|---|---|---|---|
| 1 | 12 | ABC | X |
| 2 | 13 | ABD | Y |
| 4 | 13 | LMN | Y |
| 5 | 14 | OPQ | X |