For example, I have this table:
+------+--------+-------+--------+-------+
| name | length | width | status | side |
+------+--------+-------+--------+-------+
| T1 | 5 | 2 | DONE | Left |
+------+--------+-------+--------+-------+
| T1 | 2 | 1 | DONE | Right |
+------+--------+-------+--------+-------+
But need one select query to return:
+------+-------------+------------+-------------+--------------+-------------+--------------+
| name | left_length | left_width | left_status | right_length | right_width | right_status |
+------+-------------+------------+-------------+--------------+-------------+--------------+
| T1 | 5 | 2 | DONE | 2 | 1 | DONE |
+------+-------------+------------+-------------+--------------+-------------+--------------+
What is this kind of operation called? I'm using Postgres.