Click here to Skip to main content
15,911,848 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
I have one table name like issues.
there are one feild name like dept.

my problem is how to get data from issue table according the dept name.

i want to display the logged in user's dept issues in gridview.
so which query i want to fire ?
Posted
Comments
Zafar Sultan 10-Apr-13 10:06am    
Select query.

1 solution

SQL
SELECT *
FROM issues
WHERE dept LIKE @dept


Then pass in a value for @dept.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900