Difference between revisions of "And Versus Or"

From IMSMA Wiki
Jump to: navigation, search
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table cellspacing="5" cellpadding="0" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width: 22em; margin: 0 0 1.0em 1.0em; padding: 0.2em; border-spacing: 0.4em 0; text-align: center; line-height: 1.4em; font-size: 88%; background-color: #f5faff; font-size: 90%; width: auto; line-height: 1.6em; width:150px;;;" class="vertical-navbox nowraplinks">
+
Search definitions allow you to specify two different kinds of logical conditions. When you specify search criteria you may need all search criteria to be true in order for a record to be included in the search results. In this situation, the AND condition indicates that each and every search criteria be true for a record to be included. If any of the criteria within the AND node is false, the record will not be included in the search result. For example, the search definition shown in the image below requires that a land have a status equal to ''Open'' and a priority equal to ''High''. In this example, both conditions must be true in order for the land to be included in the result set.
<th style="padding: 0.2em 0.4em 0.2em; font-size: 145%; line-height: 1.2em; font-weight: bold; background-color: #9aa8b5; font-size: 125%" class="">Related Topics</th>
 
<tr>
 
<td style="padding-top: 0.2em; font-weight: bold; background-color: #cee0f2" class="">Using IMSMA</td>
 
</tr>
 
<tr>
 
<td style="padding-bottom: 0.2em; text-align: left">
 
[[Geospatial Data]]<br />
 
[[Search]]<br />
 
[[Reports]]<br />
 
[[Printing]]<br />
 
[[Map Layouts]]<br />
 
</td>
 
</tr>
 
<tr>
 
<td style="padding-top: 0.2em; font-weight: bold; background-color: #cee0f2" class="">Search</td>
 
</tr>
 
<tr>
 
<td style="padding-bottom: 0.2em; text-align: left">
 
[[Search Manager Window]]<br />
 
[[Search Results Window]]<br />
 
[[HowTo:Search Terms|Search Terms]]<br />
 
[[HowTo:Search the Field Report Audit Log|Search Audit Log]]<br />
 
</td>
 
</tr>
 
<tr>
 
<td style="padding-top: 0.2em; font-weight: bold; background-color: #cee0f2" class="">Search Manager Window</td>
 
</tr>
 
<tr>
 
<td style="padding-bottom: 0.2em; text-align: left">
 
[[HowTo:Add a Search Definition|Add Search Definition]]<br />
 
[[Any Versus All]]<br />
 
[[HowTo:View or Change a Search Definition|View/Change Search Definition]]<br />
 
[[HowTo:Remove a Search Definition|Remove Search Definition]]<br />
 
[[HowTo:Execute a Search Definition|Execute Search Definition]]<br />
 
</td>
 
</tr>
 
</table>
 
  
Search definitions allow you to specify two different kinds of logical conditions. When you specify search criteria you may need all search criteria to be true in order for a record to be included in the search results. In this situation, the ALL condition indicates that each and every search criteria be true for a record to be included. If any of the criteria within the ALL node is false, the record will not be included in the search result. For example, the search definition shown in [[:Image:fig74.png|Figure 74]] requires that a hazard have a status equal to ''Open'' and a priority equal to ''High''. In this example, both conditions must be true in order for the hazard to be included in the result set.
+
[[Image:ExampleSearchUsingANDCondition.png|center|500px|''Example of a Search Using the AND Condition'']]
 
 
[[Image:fig74.png|center|500px|''Figure 74. Example of a Search Using the ALL Condition'']]
 
 
<div align="center">
 
<div align="center">
''Figure 74. Example of a Search Using the ALL Condition''
+
''Example of a Search Using the AND Condition''
 
</div>
 
</div>
  
In other situations, an item record may only need to satisfy one search criteria to be included in the search results. When this is the case, you should use the ANY search condition.  The ANY condition indicates that only one search criterion must be true.
+
In other situations, an item record may only need to satisfy one search criteria to be included in the search results. When this is the case, you should use the OR search condition.  The OR condition indicates that only one search criterion must be true.
  
[[Image:fig75.png|center|500px|''Figure 75. Example of a Search Using the ANY Condition'']]
+
[[Image:ExampleSearchUsingORCondition.png|center|500px|''Example of a Search Using the OR Condition'']]
 
<div align="center">
 
<div align="center">
''Figure 75. Example of a Search Using the ANY Condition''
+
''Example of a Search Using the OR Condition''
 
</div>
 
</div>
  
The ALL and ANY conditions group the search criteria within the group together. The search conditions can be nested within one another to create more complex search criteria.  
+
The AND and OR conditions group the search criteria within the group together. The search conditions can be [[Nested Search | '''nested''']] within one another to create more complex search criteria.
 +
 
 +
{{NavBox HowTo Search}}
  
[[Category:Using IMSMA]]
+
[[Category:NAA]]
[[Category:Search]]
 
[[Category:Topical]]
 

Latest revision as of 08:11, 18 March 2019

Search definitions allow you to specify two different kinds of logical conditions. When you specify search criteria you may need all search criteria to be true in order for a record to be included in the search results. In this situation, the AND condition indicates that each and every search criteria be true for a record to be included. If any of the criteria within the AND node is false, the record will not be included in the search result. For example, the search definition shown in the image below requires that a land have a status equal to Open and a priority equal to High. In this example, both conditions must be true in order for the land to be included in the result set.

Example of a Search Using the AND Condition

Example of a Search Using the AND Condition

In other situations, an item record may only need to satisfy one search criteria to be included in the search results. When this is the case, you should use the OR search condition. The OR condition indicates that only one search criterion must be true.

Example of a Search Using the OR Condition

Example of a Search Using the OR Condition

The AND and OR conditions group the search criteria within the group together. The search conditions can be nested within one another to create more complex search criteria.