There is a table:
- product
- -price
- -currency
The user drives in the price and currency, when displaying records on the page, the currency is recalculated according to the current exchange rate. The problem is that the rate can change every day, and there is no possibility to store the price for each currency in the table, as there will be many entries in the table. How, in this case, to implement sorting or sampling with a condition on the price in a certain currency?