SELECT CASE myField1 WHEN myField1 > 10 THEN myField-10 ELSE myField+10 END AS caseresult FROM mytable
Can I use the CASE statement for a LEF JOIN to different table's
WHEN myfield1 = '1' then (LEFT JOIN table1 ON ..... ) END
WHEN myfield1 = '2' then (LEFT JOIN table2 ON ..... ) END
WHEN myfield1 = '3' then (LEFT JOIN table3 ON ..... ) END
WHEN myfield1 = '4' then (LEFT JOIN table4 ON ..... ) END
the size amount of colums is different for table1, table2, table3, table4
I'll ask it before I realise that my idea isn't possible.