Boolean operators

Boolean operators form the basis of mathematical sets and database logic. They connect your search words together to either narrow or broaden your set of results. The three basic Boolean operators are: AND, OR, and NOT.

Use “AND” in a search to:

  • tell the database that ALL search terms must be present in the resulting records
  • narrow your results

For example: cloning AND animals AND ethics:

Search cloning and animals and ethics gives results with all the searc terms. For example, the article "The clonign of animals for farming purposes in the EU: from ethics to agri-food law".

Use “OR” in a search to:

  • connect two or more similar concepts (synonyms)
  • broaden your results, telling the database that ANY of your search terms can be present in the resulting records

For example: Tinder OR “mobile dating”:

Result for the search tinder and mobile dating is an article called "Dressing up tinderella: interrogating authenticy claims on the mobile dating app Tinderella".
Result for the search tinder and mobile dating is an article called "To tinder or not to tinder".
Result for the search tinder and mobile dating is an article called "The role of gay identity confusion and outness in sex-seeking on mobile dating apps among men who have sex with men".

Use “NOT” in a search to:

  • exclude words from your search
  • narrow your search, telling the database to ignore concepts that may be implied by your search terms

For example:  students NOT “pre-school students”

Databases usually recognize AND as the primary operator, and will connect concepts with AND together first. If you use a combination of AND and OR operators in a search, enclose the words with OR together in parentheses: students AND (facebook OR “social media”). In many databases you may use the advanced search form to build up your search with drop-down menu (see the examples above). Write all the Boolean operators in CAPITAL LETTERS.

Watch a video “Using Boolean operators” (2:14) by John M. Pfau Library (CC BY 4.0):

(8/2022 RH)