I have a stored procedure that I am using to create a report. At the end of the stored procedure I have the following select statement (rptset is a temporary table created in the proc):
If I want to use parameters from the report to filter the data from the stored procedure, how would I do that?
Code:
select * from @rptset
where
rordered!=rshipped