all groups > sql server programming > january 2004 >
You're in the

sql server programming

group:

Advanced Select Query [Re-explained]



Advanced Select Query [Re-explained] kuya789 NO[at]SPAM yahoo.com
1/5/2004 10:34:19 PM
sql server programming: Sorry for the re-post, my original post wasn't very clear. this is
very important. I need a query that can return wildcard matches if
there's no exact match. I'm using IIS 5 with ASP.NET and MS Access.
Bascially what I'm trying to do is to partially match a field. It's
like when you type a mis-spelled word in google it gives you
suggestions to the next possible match.

this is what my db table looks like
ID DESCRIPTION
---- ---------------
1 My * address *
2 My * number *
...
here's my pseudo-query
SELECT DESCRIPTION FROM table1 WHERE ...

if the input is "my email address is kfjsk@fsdf.com"
it would select ID 1

I hope this makes sense
Thanks for helping me
Re: Advanced Select Query [Re-explained] Dan Boylett
1/6/2004 9:42:20 AM

[quoted text, click to view]

Have you had a look at the CONTAINS and FREETEXT keywords in the BOL?
Otherwise have a general look at full text searching topics.








Re: Advanced Select Query [Re-explained] James Hokes
1/6/2004 10:16:15 AM
Aaron,

This is not an MS Access newsgroup.

James Hokes

[quoted text, click to view]

Re: Advanced Select Query [Re-explained] Delbert Glass
1/6/2004 5:09:20 PM
create table aaron (id int, description varchar(40))

insert into aaron values (1, 'My * address *')
insert into aaron values (2, 'My * number *')

select *
from aaron
where 'my email address is kfjsk@fsdf.com'
like replace(description,'*','%')
order by id

Bye,
Delbert Glass

[quoted text, click to view]

AddThis Social Bookmark Button