spicysudhi
Programmer
hi
my requirement is like this.
The table contains the country code, currency, value and exchange rate. When the user looks at the local country i want to see the value in local currency and at global level at USD using the exchange rate.
sample data
Country Value Currency Exch rate
US 10 USD 1
UK 20 GBP 1.5
FR 10 EUR 0.5
expected output like this
US 10
UK 20
FR 10
Country 35
Country row is 35 (= 10 + 20*1.5 + 10*0.5) and not 40
how to get this?
regards,
sudhi
my requirement is like this.
The table contains the country code, currency, value and exchange rate. When the user looks at the local country i want to see the value in local currency and at global level at USD using the exchange rate.
sample data
Country Value Currency Exch rate
US 10 USD 1
UK 20 GBP 1.5
FR 10 EUR 0.5
expected output like this
US 10
UK 20
FR 10
Country 35
Country row is 35 (= 10 + 20*1.5 + 10*0.5) and not 40
how to get this?
regards,
sudhi