Link to home
Start Free TrialLog in
Avatar of Harreni
HarreniFlag for Saudi Arabia

asked on

Filtering Query Results using WHERE Clause

I had this question after viewing Ordering data descending in Table Valued Function.

In my previous code, I want to add a where clause after
EXEC SP_RecivedDataForTBV @CusResults;
GO

Open in new window

                                         
So I can pass some parameter to filter the whole result, is there a way?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Static parameters - meaning always the same fields?

You need to add a parameter to your SP, and add a WHERE clause using this parameter in your SP
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Harreni

ASKER

Thanks a lot Experts for your excellent explanations with examples.