Home Forums SQL Server 2016 SQL Server 2016 - Development and T-SQL Using joins instead of temp table. RE: Using joins instead of temp table.
DouglasH
SSCommitted
Points: 1669
More actions
June 28, 2016 at 8:03 am
#1887304
You're going to have to do a left join from the table to itself. The LHS resultset will have 'SourceSystem = 3' and it will join to records with 'SourceSystem = 1' (as well as other join fields)