G
Guest
Hi
I'm trying to write some VBA which changes a table to hold only unique records only (with all duplications etc deleted)...
I've been trying to work out how to do it in SQL first, with not so much luck. While I am sure, I can create a sequence of queries which creates a temp table from the union of the first table to itself and then another query for overwriting the original table ("BO_Extract") with the first table and then delete the temp table. It seems a little long winded. Is there a better way? I was trying to create an SQL query which was perhaps dreaming that when something like
SELECT
(SELECT BO_Extract.
FROM BO_Extrac
UNION SELECT BO_Extract.
FROM BO_Extract
INTO BO_Table
I'm trying to write some VBA which changes a table to hold only unique records only (with all duplications etc deleted)...
I've been trying to work out how to do it in SQL first, with not so much luck. While I am sure, I can create a sequence of queries which creates a temp table from the union of the first table to itself and then another query for overwriting the original table ("BO_Extract") with the first table and then delete the temp table. It seems a little long winded. Is there a better way? I was trying to create an SQL query which was perhaps dreaming that when something like
SELECT
(SELECT BO_Extract.
FROM BO_Extrac
UNION SELECT BO_Extract.
FROM BO_Extract
INTO BO_Table