Querying for names
Posted
by Sai
on Stack Overflow
See other posts from Stack Overflow
or by Sai
Published on 2010-03-23T07:39:24Z
Indexed on
2010/03/23
7:43 UTC
Read the original article
Hit count: 610
I have a table (say "Demographics") on SQL Server. In this table are the following columns "LastName", "FirstName", "MiddleName", "Prefix" , "Suffix".
I have one textbox to search for them on a webpage. My question: Whats a good design strategy for queries where the user could be searching for various combinations of names including last names that have spaces
e.g. "Smith James Jr." . Our customers store Jr. sometimes in suffix and sometimes just tack it to lastname. Sometimes Smith James Jr could be the entire last name.
© Stack Overflow or respective owner