select a.inv_no, b.account_no, b.location, c.product_desc, d.acc_name ; from order_file a inner join ship_history b, product_items c, customer_accounts d ; on a.inv_no=b.inv_no ; into cursor sql_dataAs stated in an earlier post:
Parent Child Order number Order Number Order Status 11111 11111 Submitted 11121 11111 Processing 11131 11111 Shipped 11121 Hold 11131 Submitted 11131 Processing 11131 CancelledNow I am trying to add a few fields from other tables. I am trying to bring in the associated account name that is from the parent order number and I am trying to bring the product description from the product file.