Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

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 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>