I have to query for total amount of a column using an aggregate function. The column data type is NVARCHAR(MAX). How can I convert it to Integer?
I have tried this:
SELECT sum(Try_Parse(amount as Int Using 'en-US')), branch FROM tblproducts WHERE id = 4 GROUP BY branch