anumoses
asked on
update table query
select ord.id,orditm.order_id,orditm.prior_code
from dss.orders ord, ordered_items orditm
where ord.id = orditm.order_id
and ord.customer_po in
('8835 SOS','8693 SOS','8614 SOS','8610 SOS','8706 SOS','8757 SOS','8703 SOS','8785 SOS','8653 SOS','8770 SOS',
'8690 SOS','8807 SOS','8614 SOS','8689 SOS','8687 SOS','8642 SOS','8631 SOS','8126 SOS','8543 SOS','8403 SOS',
'8519 SOS','8535 SOS','8430 SOS','8548 SOS','8423 SOS','8383 SOS','8397 SOS','8448 SOS','8398 SOS','8080 SOS',
'8155 SOS','8158 SOS')
I have 32 rows. Need to made the prior_code as null from ordered_items table. Basically remove the data that is in the column prior_code.
tried update ordered_items
set prior_code = null
where order_id in (select....
gives me error. Need help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER