Contains
The Contains keyword can be used on either Texts, Concept Sets or Lists.
It checks if a text, a concept set or a list contains a value (of corresponding type).
This function is PARTIALLY SQL compatible:
the variant
concept_set contains concept_setis NOT SQL compatible
For more information about SQL compatibility, see our documentation.
Returns a Yes/No value that indicates if the searched item is indeed part of the source being searched.
Text functions are not case-sensitive and ignore diacritics (accents).
concept_set contains concept_set
{ 'User', 'PowerUser', 'Admin' } contains { 'User', 'Admin' }
=> Yes
{ 'PowerUser', 'Admin' } contains { 'User', 'PowerUser' }
=> No (the second set is not contained entirely within the first set, although there is overlap - which is a different keyword/function)
This variant will always have to be executed outside SQL context - it is not SQL compatible.
Last updated
Was this helpful?