SELECT Farmer FROM Farms WHERE EXISTS
(SELECT * FROM Landowners
WHERE Landowners.Name = Farms.Farmer)
but not working:
SELECT Farmer FROM Farms WHERE EXISTS
(SELECT * FROM Landowners
WHERE Landowners.Name CONTAINING Farms.Farmer)
(and not working with like, result is NULL)
For example 'LISA' as Farmer and 'MONALISA' as Landowners.Name
'MONALISA' CONTAINING 'LISA' but EXISTS in this query returns NULL.
Alone EXISTS returns correct dataset.
Submitted by: Paweł Krzyżanowski (zpksoft)
in https://firebirdsql.org/manual/nullguide-predicates.html
is code:
but not working:
(and not working with like, result is NULL)
For example 'LISA' as Farmer and 'MONALISA' as Landowners.Name 'MONALISA' CONTAINING 'LISA' but EXISTS in this query returns NULL. Alone EXISTS returns correct dataset.