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 |
tjonas
Starting Member
17 Posts |
Posted - 2015-04-28 : 15:21:40
|
Im trying to find zip codes that have a '-' after the first five. Like 16652-1452. When I search by '16652%' it doesn't return anything. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-04-28 : 16:04:54
|
Please show us the code as yourcolumn LIKE '16652%' would have returned 16652-1452. You can use the SUBSTRING function too for this.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2015-05-07 : 05:43:46
|
Use thiswhere zipcode like '[0-9][0-9][0-9][0-9][0-9][-]%'MadhivananFailing to plan is Planning to fail |
|
|
|
|
|