There is a table:
| date        | action | issue_id |
| 2020-12-14  | close  | 1        |
| 2020-12-15  | close  | 1        |
| 2020-12-16  | close  | 1        |
| 2020-12-14  | close  | 2        |
How can I select only the last row with an action == close for each issue_id in one query?
SELECT action, issue_id
FROM table
WHERE action = 'close'
AND ???
 
     
     
    