Slightly changed the request:
SELECT * FROM
(SELECT ADR.id as ID, strftime("%d.%m.%Y %H:%M",ADR.data) as Data,ADR.adres as MyAdres,(FIRST_TAB.column_1||' - '||FIRST_TAB.column_2) as Tab1,'' as Tab2 FROM ADR
INNER JOIN
FIRST_TAB ON ADR.id=FIRST_TAB.id_ADR and ADR.id={TableGrid1}
UNION ALL
SELECT ADR.id as ID, strftime("%d.%m.%Y %H:%M",ADR.data) as Data,ADR.adres as MyAdres,'' as Tab1,(SECOND_TAB.column_1||' - '||SECOND_TAB.column_2) as Tab2 FROM ADR
INNER JOIN
SECOND_TAB ON ADR.id=SECOND_TAB.id_ADR and ADR.id={TableGrid1})
ORDER BY ID
The resulting records are correct, but I get empty lines. This spoils the entire type of report. I ask for help!
/Translation from Google/
Немного изменил запрос:
SELECT * FROM
(SELECT ADR.id as ID, strftime("%d.%m.%Y %H:%M",ADR.data) as Data,ADR.adres as MyAdres,(FIRST_TAB.column_1||' - '||FIRST_TAB.column_2) as Tab1,'' as Tab2 FROM ADR
INNER JOIN
FIRST_TAB ON ADR.id=FIRST_TAB.id_ADR and ADR.id={TableGrid1}
UNION ALL
SELECT ADR.id as ID, strftime("%d.%m.%Y %H:%M",ADR.data) as Data,ADR.adres as MyAdres,'' as Tab1,(SECOND_TAB.column_1||' - '||SECOND_TAB.column_2) as Tab2 FROM ADR
INNER JOIN
SECOND_TAB ON ADR.id=SECOND_TAB.id_ADR and ADR.id={TableGrid1})
ORDER BY ID
Результирующие записи верны, но получаю пустые строки. Это портит весь вид отчета. Прошу помощи!
/Перевод с Гугл/
I'm just learning