Hello,
I have 6 table transformers that use the same table extract with the following SQL query:
SELECT 'department', COUNT(DISTINCT('title')) AS 'publications' FROM T* GROUP BY 'department'
SELECT 'department', COUNT(DISTINCT('title')) AS 'refereed' FROM T* WHERE 'refereed' LIKE "%TRUE%" GROUP BY 'department'
SELECT 'department', COUNT(DISTINCT('title')) AS 'isi' FROM T* WHERE 'isi' LIKE "%TRUE%" GROUP BY 'department'
SELECT 'department', COUNT(DISTINCT('title')) AS 'scopus' FROM T* WHERE 'scopus' LIKE "%TRUE%" GROUP BY 'department'
SELECT 'department', COUNT(DISTINCT('title')) AS 'Bachelor' FROM T* WHERE 'thesis_type' LIKE "%bachelor%" GROUP BY 'department'
SELECT 'department', COUNT(DISTINCT('title')) AS 'Master' FROM T* WHERE 'thesis_type' LIKE "%master%" GROUP BY 'department'
These differ mainly in the where clause. I then combine the 6 table transformers into a single table.
SELECT * FROM T1 OUTER JOIN T* ON T1.'department' = T*.'department'
Can I do this somehow in a single table transformer?