orangeblue
Programmer
hi
i have a staement
set @freeitems=(@count/3)
and after that I want to use@freeitem for the below statement - at the moment i am getting an error saying
'Incorrect syntax near '@freeitems'.'
whats the best way to do this
select top @freeitems price from OrderItems where discount_id=@discount_id and order_id=@order_id order by price
thanks
i have a staement
set @freeitems=(@count/3)
and after that I want to use@freeitem for the below statement - at the moment i am getting an error saying
'Incorrect syntax near '@freeitems'.'
whats the best way to do this
select top @freeitems price from OrderItems where discount_id=@discount_id and order_id=@order_id order by price
thanks