Skip to Main Content

Oracle Database Free

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

need help to right update query in 3 tables

Manoj NelavalliNov 20 2023 — edited Nov 20 2023

i need help to right a select and update query's. i need to join 3 tables in single update query (order_line_item,item_cbo and orders).
below one i prepared but still i am getting error (sql query not properly end) please help me to right correct update query.

update order_line_item OLI
set OLI.std_bundle_qty = (select ic.std_bundl_qty from item_cbo ic where OLI.item_id = ic.item_id )
Join orders os on OLI.order_id = os.order_id
WHERE OLI.item_name = '987654'
and OLI.order_id ='1234567'
and OLI.do_dtl_status = '110';

Comments
Post Details
Added on Nov 20 2023
2 comments
501 views