I have two column in Sql server
- Amount as real type
- Price as bigint type
Amount is 3059.9 and Price is 29000
Price * amount should be 88737100 but it does not return correct value.
Should I cast any columns to other data type ?
The result is 8.87371E+07, how can I display it without scientific notation?
Try
CAST(Amount AS DECIMAL(38, 2)) * Price. Read up on DECIMAL and adjust accordingly depending on the number of digits & decimal places.