smartLIZARD
Programmer
I am using a Stored Procedure. In my database I have a field 'FullName', Problem is the data is not consistantly entered (there are millions of records.) Sometimes in the FullName field the data is formatted 'Sell, Ron E.' and other times 'Sell Ron E.'.
What I need to do is search by entering "Ron" and "Sell" and searching the field. This is what I am doing now
SELECT *
FROM tbl
WHERE FullName LIKE '%Ron%' AND FullName LIKE '%Sell%'
Is there a better way since there are so many records?
Thanks.
What I need to do is search by entering "Ron" and "Sell" and searching the field. This is what I am doing now
SELECT *
FROM tbl
WHERE FullName LIKE '%Ron%' AND FullName LIKE '%Sell%'
Is there a better way since there are so many records?
Thanks.