Conditional JOIN Statement SQL Server
I think what you are asking for will work by joining the Initial table to both Option_A and Option_B using LEFT JOIN, which will produce something like this: Example code: Once you have done this, you ‘ignore’ the set of NULLS. The additional trick here is in the SELECT line, where you need to decide … Read more