In an SSRS 2008 r2 report, the code currently obtains the results from the stored procedure and places the results in a temp table called #roomResults. See the sql below: INSERT #roomResults EXEC [StagingCA].[dbo].[spoom] @endYear I want to only insert rows into the temp table called #roomResults where the parameter called @Customer matches the Customervalue in the temp table called #roomResults.Basically I want to do something like INSERT #roomResults where @Customer= Customer --in the temp table. EXEC [StagingCA].[dbo].[spoom] @endYear Thus would you tell me how to modify the sql above so that the records for the @Customer value is entered?If there is no such sql, would I need to create a second temp table to only select records where the value = @Customer?In both cases, would you show me the sql that would solve my problem?
↧