To understand what nesting is, you need to know that databases are programmed to give AND precedence over OR. This means that terms linked with AND will be searched before those linked with OR. Nesting is a technique that can be used to override this default search order.
Nesting is using parentheses ( ) to specify the order in which a search should be processed. Search terms within parentheses will be found first and then combined with the search terms outside the parentheses.
The most common use of nesting is to enclose multiple search terms -- separated by an OR operator -- in parentheses and then linking those enclosed terms with one or more other search term(s) using AND.
This not only works in databases, but also in (most) search engines:
Note that:
Library databases typically provide drop-down boxes ➊ containing the Boolean operators AND, OR and NOT.
How would a database process the above search?
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License by Tilburg University.