I have data for different institutions with different currencies, dates and corresponding values. Need a query to get column of 'Required values' which correspond to max date grouped by each institution and currency
Institution Name Currency Date Values Required Values
Institution 1 CAD date1 100 100
Institution 1 USD date2 200 200
Institution 2 CAD date3 150 250
Institution 2 CAD date4 300 250
Institution 2 CAD date5 250 250
Institution 2 USD date6 300 300
Institution 3 CAD date7 400 400
Institution 3 USD date8 50 100
Institution 3 USD date9 75 100
Institution 3 USD date10 100 100