Creating queries with Point & Click
These instructions explain how to create a query using the default Point & Click method in a process configuration dialog. You can also follow these instructions to edit a query. Selecting a new item from the Select Based On list removes the existing query.
1.
2.
*
For a Select process, choose Select <audience> IDs With.
*
For a Segment process, use Segment by Query, double-click a segment to edit it, then use Select IDs With.
*
For an Extract process, use Select records With.
The Point & Click query builder is displayed.
3.
a.
To specify which field to query, click in the Field Name cell. The Available Fields list should appear. If the list does not appear, click in the Field Name cell again. Select an available field by double-clicking it or highlighting it and clicking Use. When deciding which available field to use, you can highlight a field and click Profile to see a list of field values.
b.
You can use the Derived Fields button if you want to create or select an existing variable for querying.
c.
Click in the Oper cell, then double-click a comparison operator in the Operators list (such as =, <, >, Between).
d.
Click in the Value cell, then double-click a value. If no values appear, click Profile to see a list of field values. You can also double-click in the Value cell to edit the value directly.
*
If you do not see the expected list (Available Fields, Operators, Values, For Selected Expresssion), try either single clicking or double clicking on a cell in the Expressions area.
You now have an expression that consists of a field name, operator, and value, such as Status=Active.
4.
a.
To add another expression, click the And/Or cell, then double-click AND or OR in the Values list to indicate how to combine the expressions.
b.
c.
To add parentheses to control evaluation order, double-click the Field Name in any row to display the For Selected Expression list. In the list of expressions, double-click Add (...) to add a set of parentheses, Remove (...) to remove a single set of parentheses, or Clear all (...) to remove all of the parentheses in the selected expression. Parentheses allow you to group expressions when defining complex queries. For example, (AcctType = 'Gold' AND Rank = 'A') OR NewCust = 'Yes' is different from AcctType = 'Gold' AND (Rank = 'A' OR NewCust = 'Yes').
d.
e.
f.
5.
Click Check Syntax to confirm whether your query syntax is valid. Checking the syntax does not put any load on the database server.
Campaign indicates whether the syntax contains any errors.
6.
(Optional) Use Test Query to see how many IDs the query returns.
A progress bar is displayed while the query is being tested. Close the progress window if you want to cancel the test. When testing is complete, Campaign indicates the number of rows the query returned.
*
7.