mysql query group by date transaction
There is table called accounts containing transaction data with columns account_number, date, balance … I want to get the balance for each account_number where the balance<-1000000000 on the last day of each account transaction, and sort the output by balance…