I have this(working) select statment:
select * from memberships where MEMBERSHIP_TYPE = 'ZZZ' and inactive_date is null
and name_id in (select name_id from name where history_yn = 'N')
but now i want to change it so it will be an update statement, :
update name
set history_yn = 'Y'
IN (select * from memberships where MEMBERSHIP_TYPE = 'ZZZ' and inactive_date is null)
but I receive ora-00933 error. Could you please advise with this?
Something like this: