Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql query behavior not as expected [DOC142] #145

Closed
firebird-automations opened this issue Oct 9, 2019 · 1 comment
Closed

Sql query behavior not as expected [DOC142] #145

firebird-automations opened this issue Oct 9, 2019 · 1 comment

Comments

@firebird-automations
Copy link

firebird-automations commented Oct 9, 2019

Submitted by: Paweł Krzyżanowski (zpksoft)

in
https://firebirdsql.org/manual/nullguide-predicates.html

is code:

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.

@mrotteveel
Copy link
Member

Without more details, this is not really answerable. It also looks like a support question which would be more suitable for https://groups.google.com/g/firebird-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants