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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Basic question about AND and OR

Author  Topic 

GIS
Starting Member

9 Posts

Posted - 2014-06-22 : 04:01:49
Hi,
I guess it's the most basic question possible.
Example: I need results from city A or city B under certain condition C.
Something like this (which returns error):

Select D
From E
Where F = ("A" or "B") and C = "G"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-06-22 : 04:03:42
[code]
WHERE (F = 'A' OR F = 'B')
AND (C = 'G')
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

GIS
Starting Member

9 Posts

Posted - 2014-06-22 : 04:08:43
Thanks a lot :-)
Go to Top of Page
   

- Advertisement -