kermitforney
Technical User
I need to figure out if there is another way to perform this query without using Temp Tables.
I have a query that compares two result sets and INSERT's (INTO) those out into another table.
Ex.
Result Set #1
SELECT's all people WHO should have baseball equipment.
INTO #Baseball1
Result Set #2
SELECT's all people who DO have baseball equipment.
INTO #Baseball2
Comparison
LEFT OUTER JOIN WHERE RESULT SET #2 (#Baseball2) IS NULL
(Gimme those who should have equipment, but don't and place them into a table to correct later.)
INSERT INTO
DATA VALIDATION TABLE
I Hope this wasn't too confusing, I was trying to figure out how to word it without pasting TSQL. )
I have a query that compares two result sets and INSERT's (INTO) those out into another table.
Ex.
Result Set #1
SELECT's all people WHO should have baseball equipment.
INTO #Baseball1
Result Set #2
SELECT's all people who DO have baseball equipment.
INTO #Baseball2
Comparison
LEFT OUTER JOIN WHERE RESULT SET #2 (#Baseball2) IS NULL
(Gimme those who should have equipment, but don't and place them into a table to correct later.)
INSERT INTO
DATA VALIDATION TABLE
I Hope this wasn't too confusing, I was trying to figure out how to word it without pasting TSQL. )