I'm using Postgres, I've this table:
id | fieldname | value
----------------------
1 | price | 10000
and
id | dyn_field | dyn_value
--------------------------
1 | bathroom | 2
2 | bedroom | 4
and I would like to get the following output
field | value
---------------------
price | 10000
bathroom | 2
bedroom | 4
What query can be used for get these output,.? thanks,.