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?
Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.
Discover more from SQL Authority with Pinal Dave
Subscribe to get the latest posts sent to your email.


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