LuckyJim1001
MIS
Hi all,
Not a problem more of a 'why does it do that'
I have a script that does this:
SELECT
some stuff
INTO
new table
FROM
source
WHERE
filters
UNION
Another Select etc here
INSERT INTO
same table as above
SELECT
From, where etc
Now the question.
The UNION is not doing it's distinct thing on the last INSERT INTO. I know this because I have 2 exact same records in the resulting table
No bad thing, this is exactly what I wanted it to do.
Excuse my ignorance but is the INSERT INTO ignoring what happens before it ?
Not a problem more of a 'why does it do that'
I have a script that does this:
SELECT
some stuff
INTO
new table
FROM
source
WHERE
filters
UNION
Another Select etc here
INSERT INTO
same table as above
SELECT
From, where etc
Now the question.
The UNION is not doing it's distinct thing on the last INSERT INTO. I know this because I have 2 exact same records in the resulting table
No bad thing, this is exactly what I wanted it to do.
Excuse my ignorance but is the INSERT INTO ignoring what happens before it ?