More information

Boolean

Find

Query Central

Query

The Query Group Item Link allows you to use a more complex set of criteria to search for records than the standard Find group item link.

Clicking the Query group item link will take you to the Query Tool page. The Query Group Item Link and the Query Tool page are standard through all netFORUM modules. However, the tables used to create queries are specific to the module within the query tool. Only data pertinent to the current module is available for you to use in the query.

Compared to the Find tool, the Query tool allows you to make more refined and specific searches of the processes in the database. The Query tool allows you to use Boolean search characteristics such as combinations of and, or, not, and parenthesis to create complex search criteria.

Find vs. Query

The Find page has a predefined set of fields, which are the criteria for your search and represent the columns of tables in the database. The Query search allows you to select any column in the search table as the criteria for your search.

User Interface Elements

Note: The Deny Selected Group, Save Query, and Run Query buttons are not displayed until you choose a saved query, or you enter conditions into a new query.

Using the Query Tool

To Navigate to the Query Tool:

  1. In the Module page, select a Group Item.
  2. Select the Query Group Item group item link, from the Group Item menu.
  3. The Query Group Item page opens.

Creating Distinct Queries

Clicking the Distinct? check box on the query tool eliminates duplicate records based on the columns requested in the query.

Example:
  1. Joe T. Pro registered for two events. You run a query for individuals who registered for either event. You request the following Query Columns (fields): First Name, Last Name, Individual Type, and Age. You clear the Distinct? check box.
  2. The query returns Mr. Pro twice, once for each event.
  3. If you select the Distinct? check box, and run the same query, then the query returns Mr. Pro only once. Selecting the Distinct? check box causes netFORUM to filter out one instance of Mr. Pro, because the columns returned are identical regardless of which event he attended.
  4. If the query columns are modified to include the attended? check box on the Event Registrant profile and the Distinct? check box is still selected, the results change as follows :
    1. If Mr. Pro attended both of the events, the query returns Mr. Pro once because the attended? check box is selected for both events.
    2. If Mr. Pro attended one event but not the other, the query returns Mr. Pro twice because the attended? check box is selected for one event and not the other, making the two events distinct.

Note: The query returns zero records if you select the Distinct? check box and a text-type column. The database does not allow a distinct query on a field type of text because the database stores a pointer to the actual text. The pointers are always different, even if the text is the same. The work around is to either remove the text-type field from the Query Columns, or clear the Distinct? check box.