Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
nindoo
Starting Member
4 Posts |
Posted - 2005-02-22 : 10:39:00
|
| I want to query for all the people whose first name is John. In the database the name field contains both the first name and last name.How can I tackle this issue? I think there is a keyword "LIKE" in sql. |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-02-22 : 10:48:41
|
yes there is:where Col1 like '%John%'look it up in Sql server help = Books online = BOLGo with the flow & have fun! Else fight the flow |
 |
|
|
nindoo
Starting Member
4 Posts |
Posted - 2005-02-22 : 11:03:40
|
| Thank you :)If I remove the first '%' symbol I'll get all the names beginning with John. |
 |
|
|
|
|
|