As the result of many subqueries, I have the following table:
+---------------------------------------------+
| register | simulation | hasLimit | approved |
+---------------------------------------------+
| X | Y | Z | W |
+---------------------------------------------+
But I want it to be like this:
+----------------+
| register | X |
+----------------+
| simulation | Y |
+----------------+
| hasLimit | Z |
+----------------+
| approved | W |
+----------------+
In R I would simply transpose using the function t(), however in SQL it seems a bit harder. I've tried to understand the function pivot to apply in this case, but it seems a little strange, since I'm actually just transposing, not pivoting anything.