I have a stored procedure I do not have access to edit called [usp_ItemsAndDescriptions]
.
This gives a result, and my call looks like this:
USE [eboghandel]
GO
DECLARE @return_value int
EXEC @return_value = [dbo].[usp_ItemsAndDescriptions]
@StartDate = N'2014-06-01',
@EndDate = N'2014-06-19',
@Top = 10000
SELECT 'Return Value' = @return_value
GO
This stored procedure then gives a list of fields. One of the fields are called PressDescription
.
Now I want to make a WHERE
statement, so I could say:
SELECT * FROM MYSTOREDPROCEDURERESULT mys WHERE mys.PressDescription = '1'
What is the syntax to do this? I do not have access to edit the stored procedure unfortunately, even though that would be optimal.