I want a query to create a one row table with as many columns as there are rows in a table returned from a SELECT query., where the columns created have names which are values taken from some column of the SELECT query, and have values which are values taken from some other column of the SELECT query.
e.g.
If I have a table T1 with two columns as follows :
Field Value
A 1
B 2
C 3
D 4
Then I want a query that will return the following one row table T2 as result :
COLUMN NAMES : A B C D
COLUMN VALUES: 1 2 3 4
A simple query to solve this:
An organic query: