How would you format a big number in SQL Server with the appropriate symbol depending on the number? Such as
12,100,000,000 = 12.1bn
800,000,000 = 800mn
2,100,000,000,000 = 2.1tn
Format(num_value,'N3') puts it in commas, but I need it to be more like decimal examples above. Is there a way to do this without dividing dynamically?