The currency symbols like $ and £ are implicitly treated as money value in SQL Server
If you run the following code
SELECT $
SELECT £
You can see that both of the above statements return the value 0.00
It is also possible to use them in arithmetic calculations
SELECT $+5
returns 5.00
SELECT 45-£
returns 45.00
How many of you know this?
Reference: Pinal Dave (https://blog.sqlauthority.com)
2 Comments. Leave new
I had no idea. I have to try it tomorrow
ANY PROVISION TO SAVE EURO SYMBOL IN DATABASE, THOUGH WE ARE UNABLE TO UPDATE THE COLUMN TO NVARCHAR AS UPDATION IN PRODUCTION DATA MAY CAUSE DATA LOSS