Skip to main content

Filter Expressions - String

Example

c.name:           ### SQL interpretation ###
- 'any' #'any' = 'any'
- '-FOO-' #c.name = 'FOO'
- '%FOO%' #c.name LIKE '%FOO%'
- 'FOO%' #c.name LIKE 'FOO%'
- '%FOO' #c.name LIKE '%FOO'
- 'null' #c.name IS NULL
- 'blank' #c.name IS NULL OR LENGTH(CAST(c.name AS STRING)) = 0
- 'not -FOO-' #NOT c.name = 'FOO'
- 'not %FOO%' #NOT c.name LIKE '%FOO%'
- 'FOO% not' #! #NOT c.name LIKE 'FOO%'
- 'not %FOO' #NOT c.name LIKE '%FOO'
- 'not null' #NOT (c.name IS NULL)
- 'not blank' #NOT (c.name IS NULL OR LENGTH(CAST(c.name AS STRING)) = 0)

Description

ExpressionDescription
anyis any value (same as no filter)
-FOO-is equal to "FOO", exactly
%FOO%contains "FOO"
FOO%starts with "FOO"
%FOOends with "FOO"
nullhas no data
blankhas zero characters or has no data
not -FOO-matches any value except "FOO"
not %FOO%doesn’t contain "FOO"
FOO% notdoesn't start with "FOO" (pay attention that "not" is located at the end of expression)
not %FOOdoesn’t end with "FOO"
not nullhas data
not blankhas more than zero characters