I have the following data. I want to get the record of a person_id that has the lowest_diff
person_id tab_id date_of_tab diff
101 567 2019-01-23 0
101 509 2019-02-20 19
102 202 2019-03-01 88
102 222 2019-01-12 10
How can I get the following expected output in PSQL?
person_id tab_id date_of_tab diff
101 567 2019-01-23 0
102 222 2019-01-12 10