Results 1 to 8 of 8

Thread: Comparing Company Name from 2 diffrent Sources

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    4

    Comparing Company Name from 2 diffrent Sources

    Currently Im getting two files with Company name in it from two diffrent Sources. I would like to run a compare the see if a company resides in both files. The only problem I have is that a company can be not exactly the same. For example a company might be called THE ABC COMPANY LLP and in the other file it might be A.B.C Comp How can I write code to compare these two values and return a positive match if they are similar. Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Comparing Company Name from 2 diffrent Sources

    What kind of files are you getting?

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    4

    Re: Comparing Company Name from 2 diffrent Sources

    .csv

  4. #4
    Lively Member
    Join Date
    Nov 2002
    Location
    Albacete, Spain
    Posts
    71

    Re: Comparing Company Name from 2 diffrent Sources

    Do you want your computer to tell you that two non-identical values are identical? In other words, would it have to decide which pair of names are similar enough to be considered as the same company... I don't think this is very feasible.

    Good luck!

  5. #5
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Comparing Company Name from 2 diffrent Sources

    sounds like a good 'artificial intelliegence engine' project

  6. #6
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Comparing Company Name from 2 diffrent Sources

    Reply to bmatrose,
    Hello bmatrose,
    The file type here is not the issue,
    what you want is very hard to do because you can have another company call ABC Company Ltd. and it will be wrong thing to compare the names.

    If you know that you dont have 2 companies with the almost same name and you know you have at least 1 word matching (ABC and A.B.C are matching without the dots)
    you can make new strings without dots or other signs and see if they matches.

    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Comparing Company Name from 2 diffrent Sources

    That's not going to work unless you strip out the periods, and use upper case. Then it *might* work.

  8. #8
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Comparing Company Name from 2 diffrent Sources

    Thats the problem with text comparing.
    Cant you ask for numeric key or something like that to be added to your csv file?

    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width