我有一个使用PO_PurchaseOrder_Line表的查询。我需要获得汇率,因为PurchaseCost表是台湾货币。
答案 0 :(得分:0)
使用
declare @totalAmountUSD bigint
declare @exchangeRate int
Set @exchangeRate =0.031
Set @totalAmountUSD=@totalValue* @exchangeRate;
我使用以下链接查找汇率
https://www.google.co.in/?gfe_rd=cr&ei=PJ1jV9jzM-nI8Afz573wDw#q=COnvert+taiwan+dollar+to+usd
我还建议你创建一个汇率表。
http://www.codeproject.com/Articles/553206/An-Introduction-to-Real-Time-Stock-Market-Data-Pro
http://www.sql-server-performance.com/forex-exchange-exchange-rates
使用来自其API的数据。将它们插入货币表。现在使用此货币表作为汇率表