Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

Can split big sql query into multiple strings and at the end of the function concatenate execute

$
0
0

Dear All,

Am new to sql server, i have a doubt in the execution of big sql queries.

I have a SQL Query with 1000 line and in this query some sections should work as per the conditions, so i need to split this query into multiple strings and at the end as per condition, i need to concatenate each string an execute this. i would like write table valued function for this.


Viewing all articles
Browse latest Browse all 2729


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