# Sql "or"

**URL:** <https://forum.kirupa.com/t/sql-or/209060>\
**Category:** Uncategorized\
**Created:** [December 5, 2006, 4:48pm UTC](https://forum.kirupa.com/t/sql-or/209060 "2006-12-05T16:48:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx\_kid](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mx\_kid](https://forum.kirupa.com/u/mx_kid)\
**Post date:** [December 5, 2006, 4:48pm UTC](https://forum.kirupa.com/t/sql-or/209060/1 "2006-12-05T16:48:11Z")

</div>

SELECT \* FROM table WHERE x = x AND y = y OR y = b

does anyone have any links/advice about using OR in sql statements - does the OR only refer to the argument directly before ir (in this case y = y) or does it apply to everything before the OR (in this case x = x AND y = y)

cheers
