I have a page i'm creating and I have 4 variables.
1. Assignee
2. Priority
3. State
4. Type
*state is the state of the process, not physical land state
Here is what I have
My error comes with Assignee. The page starts with the assignee blank and this query doesn't bring back anything. When I start to type nothing changes.
My logic is this for Assignee (the other filters work):
Help?!
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
1. Assignee
2. Priority
3. State
4. Type
*state is the state of the process, not physical land state
Here is what I have
Code:
SELECT * FROM [SQA_DASH_AUTOMATION_PIPELINE]
WHERE
(CASE WHEN @ASSIGNEE = '' THEN ([ASSIGNEE] LIKE '%' or [ASSIGNEE] IS NULL)
ELSE [ASSIGNEE] LIKE '%' + @ASSIGNEE + '%' END)
AND ([PRIORITY] LIKE @PRIORITY)
AND ([STATE] LIKE @STATE)
AND ([TYPE] LIKE @TYPE)
My error comes with Assignee. The page starts with the assignee blank and this query doesn't bring back anything. When I start to type nothing changes.
My logic is this for Assignee (the other filters work):
Code:
Case when Assignee is null or Assignee = '' then
Bring back any Assignee
Else
Where Assignee like '%' + @assignee + '%'
End
Help?!
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008