1
我有一张精确的货币表。如何从表中获得动态精度
Currency Precision InstituteId
KWD 2 1
QAR 3 2
我有另一个表(回执)
CustomerName Amount(numeric(18,2)) InstituteId
Ahemda 100.00 1
Nirava 200.00 2
我想这样
select Amount from Receipt where InstituteId = 1
output : 100.00
select Amount from Receipt where InstituteId = 2
output : 200.000
小数点显示为每货币明智输出......请给我suggestions.is有任何直接功能或任何隐含的对话?
sql server有一个['money'](https://msdn.microsoft.com/en-us/library/ms179882.aspx)数据类型,你可能会觉得有用... –