I got Syntax error converting the varchar value 'COP' to a column of data type int. Here is the code. What can go wrong? Thanks.
@ROYALTY decimal(25,4)
@INVOICE_ID int,
select @ROYALTY = 2 from test;
select @INVOICE_ID = max(INVOICE_ID) from INVOICE
Start Free Trial