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 |
|
MonkeyBoy4u
Starting Member
2 Posts |
Posted - 2010-08-23 : 13:41:28
|
| I am new to SQL. So I have successfully ran this querySELECT * from Customers WHERE Country ='UK'How do I select both countries UK and say USASELECT * from CustomersWHERE Country = ('UK' AND 'USA') does not workPlease help |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-08-23 : 13:44:36
|
| [code]SELECT * from Customers WHERE Country IN ('UK','USA')[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
MonkeyBoy4u
Starting Member
2 Posts |
Posted - 2010-08-23 : 13:49:11
|
Thanks visakh, I had not read the "IN" operator as of now... jumped the gun a little bit |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-08-23 : 14:00:25
|
no probs. you may also doSELECT * from Customers WHERE Country ='UK'OR Country ='USA' ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|