i'm looking at a stored procedure that uses temp tables in an UPDATE...SET...FROM...WHERE stmt- i've never seen this combination before. i will note that in the example below, a column was created (AREA_1) with a very similar name as the temp table (#AREA_1)
UPDATE #TempCurCred
SET chCredentials1_1 = AREA_1
FROM AREA_1
WHERE #TempCurCred = #AREA1.ssn
is this valid? if so, i have another...
DELETE FROM #TempCurCred
FROM #AREA_1
WHERE #TempCurCred.ssn = #AREA_1.ssn
AND #TempCurCred.vcAreaCode = #AREA_1.AREA_1
if valid, what do these stmt do?
UPDATE #TempCurCred
SET chCredentials1_1 = AREA_1
FROM AREA_1
WHERE #TempCurCred = #AREA1.ssn
is this valid? if so, i have another...
DELETE FROM #TempCurCred
FROM #AREA_1
WHERE #TempCurCred.ssn = #AREA_1.ssn
AND #TempCurCred.vcAreaCode = #AREA_1.AREA_1
if valid, what do these stmt do?