Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
teamjai
Yak Posting Veteran
52 Posts |
Posted - 2012-01-03 : 01:56:46
|
Hi all,I'm having a problem working the SQL out for the following:I have a table Employee.Eid---------Ename (Column name)01----------AAA02----------BBB03----------CCC04----------AAAHow can i handle multiple criteria query..I have two text box for Search Functiontext box1---- i give the search data like(01)text box2----- i give the serach data like(CCC)01 and CCC are in table data , so both criteria is true..some time i give one criteria is true.....i want know how to check the conditions. pls help, tell the query. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
teamjai
Yak Posting Veteran
52 Posts |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-01-03 : 12:03:43
|
| shouldnt it be OR instead of AND as Ops explanation says he wants both the rows when he passes text box1=01 and textbox=CCC?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2012-01-03 : 12:13:28
|
| http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/--Gail ShawSQL Server MVP |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|