money & smallmoney (data type)
data type money & smallmoney
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
money | smallmoney
Work example
Maintain a legacy fixed-scale monetary value with an established range and rounding contract.
Use decimal with a business-chosen scale for new calculations that need explicit precision.
Check your work money uses a fixed scale and intermediate arithmetic can round differently from a chosen decimal design.
Practice SQL
Open in SQL FlowSELECT CAST(19.95 AS decimal(10,2)) AS preferred_exact_amount;
Open Microsoft Learn for full syntax, permissions, and details for your version.