Aggregate (cost=13.95..13.96 rows=1 width=8) |
-> Append (cost=0.00..13.95 rows=2 width=0) |
-> Subquery Scan on "*SELECT* 1" (cost=0.00..12.71 rows=1 width=0) |
-> Seq Scan on tbl_erp_advance_payment_tickets (cost=0.00..12.70 rows=1 width=198) |
Filter: ((un_paid_amount > '0'::numeric) AND (client_id = 3389)) |
-> Subquery Scan on "*SELECT* 2" (cost=0.00..1.24 rows=1 width=0) |
-> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..1.23 rows=1 width=198) |
Filter: ((client_id = 3389) AND ((amount - settle_amount) > '0'::numeric)) |