Insert into TableA (Col1, Col2, Col3, Col4) IF Object_ID ('temp..#Temp') Is not Null Drop Table #Temp Create Table #Temp ( ColA Varchar (100), ColB Int ) Insert into #Temp Select ColA, ColB from TableB Select Col1, Col2, Col3, Col4 From TableC C Inner join #Temp T On C.Col1=T.ColB
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)