Update statement with inner join
Can someone help me rewrite this pseudo code into ansi sql syntax?
We have 3tables:
Update TABR R set R.d =
select Q.d from TABQ Q, TABP P
I tried but the explain showed nested loops and is running too long
There is an inline view so you should expect to see nested loops - one execution of the inline view per row in TABR.
What kind of indexes do you have to serve this statement?
Pablo (Paul) Berzukov
Author of Understanding Database Administration
available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Click Here to Expand Forum to Full Width