SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 13th, 2003, 08:07 AM
gulshan gulshan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 9 gulshan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Compare strings which resembles each other

Hy, I have a table containing some rows. Each row contains a field name which is of type String.

For example:
in row1 string1 is "Adieu Poulet",
in row2 string2 is "Adieu a Poulet",
in row3 string3 is "Adiue Poulet",
in row4 string4 is "Adieu Pouleet", etc..
(That is each string resembles each other a bit, they are somewhat similar to each other)

What type of query should I make so as it return me all these string. That is I watn a query which return me strings which are similar or somewhat similar to each other.

thanks in advance

Reply With Quote
  #2  
Old November 13th, 2003, 10:50 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
gulshan

Posting a request more then once won't get you an answer any faster.

Within SQL, I don't know of anyway to do what you are asking. SQL typically deals in absolutes and what you are requesting has to many variations to find all senerios. The best I could suggest is the use of wildcard to try and come close. Maybe someone else has an idea but I can't think of one at this time you may be stuck doing this manually.

It sound like you users have gotten out of control with data entry. After you fix your problems you should look at what you can to to limit this from happening in the future(different integrity controls and possibly a DB redesign to provide better controls). Fixing data entries issues like these isn't fun and it would better to make thinks a tad harder for your users, then spending hours fixing their problems.

S-

Reply With Quote
  #3  
Old November 18th, 2003, 05:03 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
I have found something that might help you. Look up Soundex on the internet (google). This function can compare based on the way a word sounds and not how it is spelled. depending on the DB your are using will drive how you can use it.

Good luck

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Compare strings which resembles each other


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT