So, I have two tables: dataTable
and dataTableColNames
.
dataTable
goes like this:
col1 | col2 | col3 | ... | col9
-----|------|------|-----|-----------
123 | abcd | text | ... | 02/02/2018
... | ... | ... | ... | ...
999 | xyz | text | ... | 31/12/2018
and has about 30 rows.
dataTableColNames
is something like this:
colID | colNameEn | colNameRu
------|-----------------|--------------
col1 | "Column 1 Name" | "Колонка 1"
... | ... | ...
col9 | "Column 9 Name" | "Колонка 9"
and could contain column names even 5 or more words long. Also, there could be different translations for column titles for the same data.
How to make a SELECT
query to get a table like this?
Column 1 name | ... | Column 9 Name
--------------|-----|--------------
123 | ... | 02/02/2018
PL/SQL Developer v10
This question is not quite duplicate because my tables do not have anything like entity_id
nor any foreign keys. Also, it is about column aliases, not querying different values from many different tables. Or is it? Anyway, I don't see a solution for my problem in answers for this question. Or maybe don't understand. How to implement it on my problem?