PostgreSQL query for currency conversion rates Let’s consider the database table for currency conversion looks as below: