Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Assume

there is search functionality.

EmpId [TextBox]
Ename [TextBox]
Dept  [TestBox]
 [Submit]


how can i search all columns like optional.

like

1.i can search empid only.
2.i can search enamme only.
3. i can search dept only.

how the db query looks like.

Help me Techies.
Posted
Updated 17-Aug-12 11:53am
v2
Comments
R. Giskard Reventlov 16-Aug-12 12:38pm    
What have you already tried? No one here is just going to give you a solution without at least seeing that you've made some effort yourself.
[no name] 16-Aug-12 13:00pm    
"like"... yep that's it
1. yes you can
2. yes you can
3. yes you can
"how the db query looks like"... it looks like SQL.
Maciej Los 17-Aug-12 17:57pm    
Oooooohhhhhh yeeeaaah!
;)
[no name] 16-Aug-12 13:06pm    
your question is unclear...please elaborate it with some code that you are using.

1 solution

See these queries form w3schools.com.Your query will be same like these..
http://www.w3schools.com/sql/sql_where.asp[^]
 
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