question regarding Currency Data Type
-
20 กุมภาพันธ์ 2555 21:33
Hi All,
I have a question regarding storing Currency data. As you might be knowing that Currency data should be stored in an column having datatype as Money. What would be the difference if currency data is stored in an column having datatype as Float or Numeric(upto 2 decimal places).
Thanks
ตอบทั้งหมด
-
21 กุมภาพันธ์ 2555 5:45
Hi,
Check this:
I hope this is helpful.
Elmozamil Elamir
Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid
http://elmozamil.blogspot.com- แก้ไขโดย Elmozamil Elamir 21 กุมภาพันธ์ 2555 5:55
- เสนอเป็นคำตอบโดย Jerry NeeModerator 22 กุมภาพันธ์ 2555 10:32
- ยกเลิกการนำเสนอเป็นคำตอบโดย Jerry NeeModerator 22 กุมภาพันธ์ 2555 10:32
- ทำเครื่องหมายเป็นคำตอบโดย ConnectDebz 28 กุมภาพันธ์ 2555 1:48
-
21 กุมภาพันธ์ 2555 6:57
A general suggestion is to use Numeric over money and never use float to represent currency data.
Float is subject to rounding errors and cannot be used relaiabley in an accounting/ Reporting system.
Also when dealing with numeric data type two decimal places might not suffice since there are currencies which are highly devalued and therefore 2 decimal places may not be sufficent to capture the difference during currency conversion.
-
23 กุมภาพันธ์ 2555 1:38
- ทำเครื่องหมายเป็นคำตอบโดย ConnectDebz 28 กุมภาพันธ์ 2555 1:48
-
28 กุมภาพันธ์ 2555 1:48Thanks for the link.
-
28 กุมภาพันธ์ 2555 1:49I have used Decimal (2 decimal places). Thanks for sharing.