Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Performance tuning advice required

$
0
0

Hi Experts,

I am using the following query

update ABC set  abc.col1=xyz.col1from abc,xyz where abc.col2=xyz.col2 and xyz.col1 in (select min(xyz.col1)from xyz group by col2)

The sub query will return 1.5 million records , over all this query is working on 1 million records and  taking around 10 min is there any way we can optmize this query or any sugession on index that will improve the performance.

Any help in this is very much appericiate.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>