I have data like
tableid name status uuid date 1 a none 1 2019-12-02 1 a none 2 2019-12-02 1 a done 4 2019-12-02 2 b none 6 2019-12-02 2 b done 7 2019-12-02 3 c none 8 2019-12-02 if I had multiple rows for one table, I want to select the row of that table which is having status done. if any table doesn't have status like 'done' want to return 'none'.
tableid name status uuid date 1 a done 4 2019-12-02 2 b done 7 2019-12-02 3 c none 8 2019-12-02