SQL join different tables depending on row information
- by Xster
Hi, I think this question hasn't be asked yet.
Suppose I have table A with a field that can be either 1 or 2
How do I select such that for each row in table A, if the field is 1, join the select with table B and if the field is 2, join the select with table C?