| Nested Loop (cost=11.78..15.79 rows=1 width=561) |
| -> Hash Join (cost=11.64..15.48 rows=1 width=565) |
| Hash Cond: (eprp.id = r.erp_sales_outbound_spent_product_id) |
| -> Seq Scan on tbl_erp_sales_outbound_spent_products eprp (cost=0.00..3.33 rows=133 width=8) |
| -> Hash (cost=11.62..11.62 rows=1 width=561) |
| -> Seq Scan on tbl_erp_sales_outbound_spent_product_sns r (cost=0.00..11.62 rows=1 width=561) |
| Filter: ((NOT is_cancel) AND (erp_inventory_product_sn_id = 19)) |
| -> Index Scan using tbl_erp_sales_outbounds_pkey on tbl_erp_sales_outbounds epr (cost=0.14..0.31 rows=1 width=4) |
| Index Cond: (id = eprp.erp_sales_outbound_id) |
| Filter: (status = ANY ('{1,2}'::integer[])) |