> Distribution > Queries/Directory manager > Create a database query

Create a database query

Use the New query dialog to build a query by selecting from attributes, relational operators, and the attribute's values. Build a query statement by choosing an inventory attribute and relating it to an acceptable value. Logically relate the query statements to each other to ensure they're evaluated as a group before relating them to other statements or groups.

To create a database query
  1. In the console's network view, right-click the My queries group (or Public queries, if you have the public query management right), and then click New query.
  2. Enter a unique name for the query.
  3. Select a component from the inventory attributes list.
  4. Select a relational operator.
  5. Select a value from the values list. You can edit a value.
  6. Click Insert to add the statement to the query list.
  7. If you want to query for more than one component, click a logical operator (AND, OR) and repeat steps 2-5.
  8. (Optional) To group query statements so they're evaluated as a group, select two or more query statements and click Group() .
  9. When you're finished adding statements, click Save.

 


Was this article useful?    

The topic was: