Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Combining "AND" and "OR" statements in SQL

$
0
0

I'm used to Visual FoxPro (VFP) coding and am just learning SQL.  In VFP, I can say: SELECT name FROM table1 WHERE city = "Chicago" AND (street = "Elm" OR street = "Maple")    with the parentheses in those positions.  How would I combine this statement in SQL?  - Thanks.


Jim Fuchs, Davenport, IA


Viewing all articles
Browse latest Browse all 7129

Trending Articles