Jump to content
Sign in to follow this  
Henry Olive

SQL Update

Recommended Posts

I wish everyone a healthy day
 

I'm getting multiple rows in singleton select err.msg. 

UPDATE ORDERS O SET
O.DELVTOTAL= (SELECT(OD.QTY - OD.REMQTY) * OD.UPRICE FROM ORDETAIL OD

WHERE O.ID=OD.ID)
WHERE EXISTS (SELECT 1 FROM ORDETAIL OD WHERE O.ID = OD.ID 

AND O.STATUS='Partial Delivery')

what is wrong ? 

Thank You

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×