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

Not exists with CTE taking more time .

$
0
0

hi ll

 i am having query like this format

with b as

(

 select query -row return:11252 -10 sec

union all

select query - row return 55163 - 2 sec

)

 select column1,column2,column3 from Tablename(row retun:35 time:45 sec) where NOT EXISTS(select 1 from b)

but over all query taking more than 10 min, how to improve the performance pls help me.

give some suggestion.


Thanks - SelvaKumarSubramaniam.Please MARK AS ANSWER, if my answer is useful to U.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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