Re: Exchange Rate Conversions
Can you see anything wrong with my query? I am getting a cannot parse error.
my tables and field names are a little different since I renamed them initially for clarity. Do field names with spaces need [] around them in sql?
from dbo.C4ISR_Actuals a
join dbo.exchangerates x
on a.objcur=x.source
and a.postg date between x.valid-from and x.valid_to
select
a.proj def,
if(a.objcur='USD',
a.val objcur,
round(a.value objccur / x.exchangerate, 2)
) as amount
from dbo_C4ISR_Actuals a
join dbo_exchangerates x
on a.objcur=x.source
and a.postg date between x.valid_from and x.valid_to
order by a.Proj Def;
Subject
Written By
Posted
Re: Exchange Rate Conversions
May 07, 2020 12:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.