Aggregate (cost=715.54..715.55 rows=1 width=32) |
-> Nested Loop (cost=0.29..715.54 rows=1 width=5) |
Join Filter: (dt1.taxonomy_id = tt.id) |
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.40 rows=1 width=4) |
Filter: ((serial_no)::text = '221106'::text) |
-> Nested Loop (cost=0.29..708.11 rows=2 width=9) |
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..590.96 rows=10 width=4) |
Filter: ((settle_amount < amount) AND (created_at >= '2025-08-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-31 23:59:59+08'::timestamp with time zone) AND (status = 2)) |
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..11.71 rows=1 width=13) |
Index Cond: ((object_id = t.id) AND (term_id = 18)) |
Filter: (object_type = 11) |