InfoTrac
Databases: Order of Execution of Parts of a Search
Statement
Step
1
- Any expression that is within
parentheses is executed first.
- Example: In art and
"intellectual property" w3 (scotland or ireland), the DBMS locates
all of the instances of "scotland" or "ireland."
Step
2
- The operators in any search
statement are executed in this order:
- Wildcards
- Proximity
operators
- Range operators
- Boolean (logical) operators
in this order
- not
- and
- or
- Example: In art and
"intellectual property" w3 (scotland or ireland), the DBMS:
- Executes the "or" between
"scotland" and "ireland" because the words are within the
parentheses.
- Searches for the phrase
"intellectual property" within 3 words of either "scotland" or
"ireland."
- Searches for the word art in
combination with all of the above.