I have a table named product. In this table, I want to update some product id values, however I cannot do it directly, my 'where' condition needs to determine records based on value from another table, so I do:
update product set prod_active = 0 where prod_id in (
select prod_id from user_prod_sel where seltype = 100
)
The problem I have here is this is very slow. How can I convert this into a oin based query that can give me faster results?
Any help is greatly appreciated.