Aggregate (cost=20.61..20.62 rows=1 width=32) |
-> Nested Loop (cost=0.29..20.61 rows=1 width=5) |
Join Filter: (dt1.taxonomy_id = tt.id) |
-> Nested Loop (cost=0.29..12.82 rows=1 width=9) |
-> Seq Scan on tbl_erp_cost_tickets t (cost=0.00..1.15 rows=1 width=4) |
Filter: ((settle_amount < amount) 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.66 rows=1 width=13) |
Index Cond: ((object_id = t.id) AND (term_id = 18)) |
Filter: (object_type = 9) |
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.78 rows=1 width=4) |
Filter: ((serial_no)::text = '221106'::text) |