exists

The exists function checks if a row exists that matches the provided filter expression and column.

The exists function is available only for rules.

Category

Lookup

Return value

boolean

Where

<connection_name>

The connection that contains the lookup table.

<table_name>

The lookup table. The table, file, or view that contains the results or values that you are looking up.

When you enter the name, ensure that you use the following format as applicable:
  • Table: <owner_name>.<table_name>

  • File: <file_name>.<file_type>

  • View: <project_name.> view

<comparison_column>

The column in the lookup table specified in <table_name> that the function uses to find a matching row.

<Parameter_or_value_compare_column_tests>

The value that the function searches for in the specified <comparison_column>. The data type must be varchar.

When you select a value for <Parameter_or_value_compare_column_tests>, keep in mind the following information:
  • The value can be a simple column reference, such as a column found in both a source and the lookup table, or an expression. The value can also be a complex expression given in terms of constants and input column references.

  • If you enter a simple column reference that is a unique source column, you do not have to include a table name qualifier.

  • If you enter a value from another table, or the value is not unique among the source columns, a table name qualifier is required.

  • If you enter an empty string, the function searches for a zero-length varchar value in the <comparison_column>.

  • The function ignores trailing blanks in comparisons of <Parameter or value> and values in <Comparison column>.