RE: comparing two lists
From: Cowboy (Gregory A. Beamer) - MVP (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 12/29/04
- Next message: Markus McGee: "CommandBuilder InsertCommand Update"
- Previous message: Cowboy (Gregory A. Beamer) - MVP: "RE: VB.NET: How to apply a DataView"
- In reply to: rbutch_at_coair.com: "comparing two lists"
- Next in thread: rbutch_at_coair.com: "RE: comparing two lists"
- Reply: rbutch_at_coair.com: "RE: comparing two lists"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Dec 2004 09:11:01 -0800
The basic process is:
1. Pull both sets of information
2. Sort both sets of information in the same order
3. Run through both sets with one set of info as master and the other as
slave. Always advance until slave is equal to or greater than master.
If one is in a file, consider dumping the database info to a file (using
BCP, or your own code) and then use StreamReaders to rip through each file.
The BCPed file will already be sorted by employee ID, so you will just have
to make sure the non-database file is sorted in the same order.
--- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA *************************** Think Outside the Box! *************************** "rik butcher" wrote: > hey guys, i need some help on an approach. > i need to compare, two different lists. > one will be pulled from a dataset and could have as much as 2500 varchar employee numbers in it. > the other will have the same data, but might be missing some of those same numbers. > what's the best way to compare the two lists, or group or array and find who's missing from the second list? > thanks > rik > > ********************************************************************** > Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ > Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... >
- Next message: Markus McGee: "CommandBuilder InsertCommand Update"
- Previous message: Cowboy (Gregory A. Beamer) - MVP: "RE: VB.NET: How to apply a DataView"
- In reply to: rbutch_at_coair.com: "comparing two lists"
- Next in thread: rbutch_at_coair.com: "RE: comparing two lists"
- Reply: rbutch_at_coair.com: "RE: comparing two lists"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|