Skip to main content
Aug 29, 2025 12:52 PM UTC
Question

How to obtain FxRateId in BR.

I am trying to write a query to the FxRates application table however, I cannot find a function to obtain the FxRateId as seen below. I see that the ID changes based on the year and not just the rate type.

 

1 reply

Member
Sep 9, 2025 8:24 PM UTC

Can't you just join the 2 tables? FXRate and FXRateType?

SELECT 
    rt.UniqueID              AS FXRateID,           -- the GUID for the rate
    rt.Name                 AS RateTypeName,
    rt.Description          AS RateTypeDescription,
    r.TimeID,
    r.SourceCurrencyID,
    r.DestCurrencyID,
    r.Amount
FROM FXRate r
INNER JOIN FXRateType rt
    ON r.FXRateTypeID = rt.UniqueID