I need to combine the price with ” USD” but I am getting this error.
“Cannot convert a char value to money. The char value has incorrect syntax.”
IsNull(pe.SalePrice,pe.ProductPrice) + ' USD' AS price
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to cast the
moneyvalue to string. At the moment you are getting an implicit cast the other way round according to the Data Type Precedence rules (i.e. it is trying to doCAST('USD' AS MONEY)then add the result to the sum which will fail as that is not a number)