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

Improving the performance of a select query with some joins - SQL Server 2012

$
0
0

Hi,

I've a T-SQL query with 5-6 joins (left, inner) that reads from tables with more 500.000 rows. I'd like to improve the performance of this query and for now without creating any indexes. I've implemented some of these joins to get the parameters to pass to a scalar function.

Could it more performant to move these joins inside the scalar function logic so reducing the processing charge of the principal query that calls the function?

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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