i have 2 table which is,
Order_detail and Item_detail, its use item_id to link each other.
Now, i want to update data from Item_detail to Order_detail.
sql = "update Order_detail set Pqty = ( select pqty from Item_detail ) where Pqty = 0 ; "
But the problem is Sql dunno update which record. Because didn't join 2 table. But i dunno how to make this 2 table to link it in this subquery.
Anyone can help me ?
Thank u