Building expressions

Use the Expression Builder to create expressions. You can type your expression directly into the Expression field, or you can use the fields and controls in the Expression Builder to build your expression.

../rule.gif

To build an expression:

  1. Use the Columns, Operators, and Case lists to select the components of the expression. Double-click on a particular column, operator, or case keyword to add it to the Expression field. Each item that you double-click is appended to the expression in the Expression field, so be sure to select items in the order that you want them displayed.

  2. Add specific values to your expression. Type a value in the Value field, then click the checkmark to add the value to the Expression field.

  3. To add a function to your expression:

    1. Select a category from the Functions list. The list below the Functions field changes to display functions in the specified category.

    2. Double-click on a function in the list below the Functions field.

    3. The Function Parameters window opens. Select the format of the function and specify the parameter values.

    4. Click OK. The Function Parameters window closes. The function and its parameters are displayed in the Expression field of the Expression Builder.

  4. To add a constant to your expression:

    1. Select a category from the Constants list. The list below the Constants field changes to display constants in the specified category.

    2. Double-click on a constant in the list below the Constants field. The constant is added to the expression in the Expression field.

  5. Use the following buttons to work with your expression:

  6. After you complete your expression, click OK. The Expression Builder window closes.

    If you were using the Expression Builder to create a column expression, the column expression is added to the Selected columns list on the Columns page.

    If you were using the Expression Builder to create a row condition, the condition is appended to the Conditions field on the Conditions page.

    If you were using the Expression Builder to create a group condition, the condition is appended to the Group conditions (HAVING) field on the Groups page.

../rule.gif

Related information

Expression Builder - Fields and controls

Creating SQL statements with SQL Assist