skip to Main Content

Get the MIN(date) across all records BUT also getting SUM for each type – Mysql

I have the following data delimited by COMMA. balance_date,name,wallet_type,available_balance 2020-05-07 13:28:59,wokalap,debit,12345 2020-06-02 08:07:18,wokalap,credit,1116 2020-06-02 08:07:18,wokalap,crypto,113 2020-05-06 59:10:05,wokalap,debit,55795 2020-06-07 08:07:18,wokalap,credit,1448 2020-06-05 08:07:18,wokalap,crypto,546 I want to get the SUM for each wallet_type but I also would ONLY want to get the earliest…

VIEW QUESTION
Back To Top
Search