Declare @fromitem varchar(15), @toitem varchar(15) set @fromitem=10 set @toitem=60 select categoryid,categoryno ,@fromitem , @toitem from category where categoryno>=10 and categoryno<=60 No data (these Right) Declare @fromitem varchar(15), @toitem varchar(15) set @fromitem=10 set @toitem=60 select categoryid,categoryno ,@fromitem , @toitem from category where categoryno>=@fromitem and categoryno<=@toitem
1
2
4
These Wrong
الفرق بين الجملتين في عبارة where تم تغيير الارقام الى متغيرات