我有一个查询如下
select
cheque_no,
sum(credit),
date
from ac_cash_collection
group by 1,3;
现在我想sum(credit)从谁的记录中获取transaction_type ilike banking,但这个条件不应该适用于其他列。
我有一个查询如下
select
cheque_no,
sum(credit),
date
from ac_cash_collection
group by 1,3;
现在我想sum(credit)从谁的记录中获取transaction_type ilike banking,但这个条件不应该适用于其他列。