||Checks the grantability of a condition
||EXISTS(Selection) : INTEGER
||selection : logical expression
||1 : selection is grantable
0 : Selection is not grantable
The function expects a parameter which is a valid selection with direct table acces. That is why it is only dynamic applicable in the tdbengine:
Thereby the function expects that the tables companies and contact_persons are relational linked (otherwise the actual record of of companies is linked with the whole table contact_persons). The result is 1 if the actual record of companies is at least linked to one record which complies with the condition.