In a Select statement I want to convert the values in a numeric field to numeric values with the number of decimals equal to the value of another field.
I’ve tried:
CONVERT (decimal(18 , CurrentDecimal), Price)
But I get an error message “Invalid or missing expression”.
Price field is numeric, precision 18, scale 6
CurrentDecimal field is integer
Is this achievable using Convert ?
Cheers
I’ve tried:
CONVERT (decimal(18 , CurrentDecimal), Price)
But I get an error message “Invalid or missing expression”.
Price field is numeric, precision 18, scale 6
CurrentDecimal field is integer
Is this achievable using Convert ?
Cheers