In this case you would have 3 tables.
if there is no related record in table2 t2, then get the value from table3 t3
If so what would the code look like?
Expand|Select|Wrap|Line Numbers
- select t1.*, concat( ) as aFoundValue
- from table1 t1
- left join table2 t2 on t1.key=t2.key
- left join table3 t3 on t1.key=t3.key