I want to display names for columns in another table like so :
select data.data1 as head.colHeader1, data.data2 as head.colHeader2 from DATA_TABLE data, HEADER_TABLE head where data.Key = header.Key and header.key = 'someUniqueKey'
the above query isn't correct - is it possible to use "dynamic" column names from another table? If so, what is the correct syntax?