-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
JET SQL means the SQL statement that followed was in the SQL syntax that
the Access database engine follows, close to SQL-92 (JET = Joint Engine
Technology).
The UNION query creates a temporary table of all the data in each of the
UNION statements, therefore, you will have a table of approx. 21,515,676
rows. If you multiply that times the size of your column you get the
approximate number of bytes of space you're union statement will need to
just hold that data. The main query's GROUP BY also builds a temporary
table of approximately the same size, but slightly smaller. So you've
got a need for A LOT of disk space, plus A LOT of RAM.
You could probably run a sequential process on the tables. You could
run a merge sort on the data (instead of data in tables, data would be
in text files), then sequentially scan the final sorted file "looking"
for duplicates - they'd be items w/ the same spelling, in sequential
order. Once that process was complete you could create a table for all
the data, put a Primary Key (PK) on the column(s) that define a row's
uniqueness & put the data back in that table. The PK would prevent any
future duplicates.
I used to have some code that did merge sorts, but I think it was in the
FORTH language & I'm not sure where that code is now-a-days. You can
probably find some on the Web. Search for '"merge sort" VB' on Google
or Clusty, or your favorite search-engine site (remove the single quotes
when typing the search string into the search text box).
=====
Making an .mde file has nothing to do w/ your problem, which is lack of
RAM and disk space.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQfFxbIechKq OuFEgEQKAAgCcDp 2+XZjs+lspApQ/NtqW/JdbeCwAn0Dv
eSN/7oOh25ZMLOm/i8HLdTvV
=62ox
-----END PGP SIGNATURE-----
Maxi wrote:
Thanx Foster
I tried that and it worked. But this was just an example that I gave
you.
Actually, I have 61 tables and every every table has 352716 records.
But when I try to find duplicates with the help of your SQL statement,
it gives an error half way "No space on temporary disk"
I have 3 partitions with more than 3 GB space available on every
partition.
I have used the SET TEMP=C:\WINDOWS \TEMP in my autoexec.bat file.
I have played with the virutal memory settings as well.
Cleared all my temporary files and .tmp files.
Tried everything given in this URL
http://support.microsoft.com/?kbid=161329
I have tried compacting/Analyze database to crunch the size but it does
not work.
Any ideas???
BTW what is "JET SQL:"? You started your SQL statement with that. Is
that a syntax?
Maxi