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 |
ismailc
Constraint Violating Yak Guru
290 Posts |
Posted - 2013-09-13 : 02:21:23
|
Hi, i need help please.Range on varchar between varchar & numericItemcode Varchar(35)select * from dbo.Dim_Item where ItemCode = 'CL00001' -- worksselect * from dbo.Dim_Item where ItemCode = '999999' -- worksbut the moment i want to range: ItemCode BETWEEN 'CL00001' AND '999999' --NO RESULTi tried: where ItemCode >= 'CL00001' AND ItemCode <='999999' --NO RESULTwhere CAST(itemcode AS varchar(10)) BETWEEN 'CL00001' AND '999999' --NO RESULTPlease Help |
|
VeeranjaneyuluAnnapureddy
Posting Yak Master
169 Posts |
Posted - 2013-09-13 : 02:39:19
|
WHERE CONVERT(VARCHAR,itemcode) BETWEEN 'CL00001' AND '999999'veeranjaneyulu |
|
|
ismailc
Constraint Violating Yak Guru
290 Posts |
Posted - 2013-09-13 : 02:48:07
|
Thank You but still No ResultI duplicated the post apologies, i should have done it on 2008 first |
|
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
|
|
|
|