Question
Comparing fields
I have a job that will involve comparing data in an uploaded
file to a
master data set, looking for indenties.
The incoming file will be a numeric only CSV, and may contain 20,000
records, each with a single large integer field. I want to a) eliminate
dupes from that incoming data, and then compare the de-duped list to the
master list to calculate % overlap, or identity.
I'm thinking I'd read the incoming data into a table, then select unique
from the table, and begin a brute force comparison, field by field, scanning
each field against the master until I reach a master value that is larger
than the test value, and then moving on to the next test record.
Is there a SQL way of doing this more efficiently?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
master data set, looking for indenties.
The incoming file will be a numeric only CSV, and may contain 20,000
records, each with a single large integer field. I want to a) eliminate
dupes from that incoming data, and then compare the de-duped list to the
master list to calculate % overlap, or identity.
I'm thinking I'd read the incoming data into a table, then select unique
from the table, and begin a brute force comparison, field by field, scanning
each field against the master until I reach a master value that is larger
than the test value, and then moving on to the next test record.
Is there a SQL way of doing this more efficiently?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
