Hello everyone,
I want to use the table transformer macro to execute two SQL selects depending on a condition.
If the Project row in the table shown is filled, the Select command should then execute a different select than if the row is not filled.
I have already tried the following. However, this does not work.
Thank you very much for your help!

DECLARE @projekt VARCHAR(255) = (SELECT T2.'Projekt' FROM T2);
IF (@projekt = "")
SELECT T2.'Sortiment',T2.'Produktbereich',T2.'Dokument',T2.'System',T2.'Status',T2.'Projekt' FROM T2
ELSE
SELECT T2.'Sortiment',T2.'Produktbereich',T2.'Dokument',T2.'System',T2.'Status',T2.'Projekt', CONCAT("15.",T1.'Verkaufsstart (SOD) Monat'::string->split("/")->1,".",T1.'Verkaufsstart (SOD)'::string->split("/")->0) AS 'Verkaufsstart' FROM T1,T2 WHERE T1.'Projekte' LIKE T2.'Projekt'
