Below is my current SQL.
Insert into [dbo].[XYZ]
select col1,col2,
(select colValue from parsedData([ParameterizedValue]) where [Name] = 'Some Value') AS col3,
(select colValue from parsedData([ParameterizedValue]) where [Name] = 'Some Value') AS col4,
(select colValue from parsedData([ParameterizedValue]) where [Name] = 'Some Value') AS col5 from [dbo].[ABC]
This statement calls the parsedData function repeatedly. And table ABC has millions of records.
So is there any SQL for holding the result of parsedData so the parsedData is called once only, instead of multiple times.
 
     
     
    