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 |
usafelix
Posting Yak Master
165 Posts |
Posted - 2014-08-12 : 10:04:00
|
Please give a query statement to filter only to handle first digit within 1,2,3,4,5,6,7,8,9 their item number and not process the first digit include a-z. ? item number qty amount 1222AX 22 $1233be 10 $23x3ba 20 $3a12345 3 $100x34342 4 $200yb2334 5 $300total 52 $ 6 |
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2014-08-12 : 10:25:30
|
select ...where left([item number],1) like '[1-9]' |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2014-08-12 : 13:05:13
|
WHERE Item LIKE '[1-9]%' Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA |
|
|
|
|
|
|
|