I have a temporary table table1
as seen below
table1
+------+---------------+------------+
| Id | Description | Attribute |
+------+---------------+------------+
| 1 | blue | color |
| 1 | Large | size |
| 1 | active | status |
| 2 | green | color |
| 2 | small | size |
| 2 | inactive | status |
+------+---------------+------------+
I would like to return a table as seen below:
+------+-----------+-----------+-----------+
| Id | Color | Size | Status |
+------+-----------+-----------+-----------+
| 1 | blue | large | active |
| 2 | green | small | inactive |
+------+-----------+-----------+-----------+
Is there a way to do this? Thank you.