|| cash |credit| 600.0 |#..... more than 10'000debit and credit rowsselect title, side, sum(balance) from accounts group by side
我得到2行,一个用于借方金额,另一个用于信贷总额
编辑我以前的问题,我简化了(我希望!)我的问题。我们有一张桌子,就像这把小提琴:实际上,我有这个查询的数据:FROM transaction AS t1 FROM transaction as t2
WHERE t2.id_shop_where_transaction_is_done != t1.id_shop_where_tra