if ur query return like this 123456789 and u want to put decimal to it
from BOL
try this query
SELECT CONVERT(VARCHAR(100),CONVERT(MONEY, 123456789), 1)
from BOL
The following table shows the values for style that can be used for converting money or smallmoney to character data.
Value | Output |
---|---|
0 (default) | No commas every three digits to the left of the decimal point, and two digits to the right of the decimal point; for example, 4235.98. |
1 | Commas every three digits to the left of the decimal point, and two digits to the right of the decimal point; for example, 3,510.92. |
2 | No commas every three digits to the left of the decimal point, and four digits to the right of the decimal point; for example, 4235.9819. |
hope this help
see u
see u
Comments