Say there is a table with columns of such:
date1, date2, date3, val1, val2, val3
2017-02-28, 2017-01-01, 2017-01-02, 100, 200, 300
2016-05-09, 2016-09-09, 2016-05-04, 2, 10, 20
I would like to get the following as result,
2017-01-01, 200
2016-05-04, 20
How to write MS SQL query?
Thanks!