i have a my sql view (MY_VIEW) with value pre-formatted with
FORMAT(myValue,2,'DE_de') as Value
So, i have some values like: 123,18 ... 10.020,98 etc.
But, when i do another query based on MY_VIEW with a Sum(Value) , it return wrong value, because i suppose, it can't do SUM on a formatted value.
So i need to re-Cast Value to a float number but using CAST but it don't work:
SUM( CAST(Value AS Decimal(10,2) ))