SELECT t1.bedingungswert,t2.wert1,t2.wert2,t2.wert3,IF(t1.bedingungswert=='j',CONCAT(t2.wert1,t2.wert2) as zusammen,CONCAT(t2.wert1,t2.wert3) as zusammen) FROM tabelle1 as t1, tabelle2 as t2
IF(t1.bedingungswert=='j',CONCAT(t2.wert1,t2.wert2),CONCAT(t2.wert1,t2.wert3) ) as zusammen