From 7ba4b738b5b87bd55e3fd3f8978d92fb785139ca Mon Sep 17 00:00:00 2001 From: Oliver Grande Date: Thu, 28 Sep 2023 09:22:14 +0200 Subject: [PATCH] Update docu --- jpa-tutorial/Questions/WhyGeZeroNotSupported.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpa-tutorial/Questions/WhyGeZeroNotSupported.adoc b/jpa-tutorial/Questions/WhyGeZeroNotSupported.adoc index 94d8a5ffb..483accd29 100644 --- a/jpa-tutorial/Questions/WhyGeZeroNotSupported.adoc +++ b/jpa-tutorial/Questions/WhyGeZeroNotSupported.adoc @@ -60,7 +60,7 @@ SELECT GROUP BY t1."CodePublisher", t1."ParentCodeID", t1."ParentDivisionCode" HAVING (COUNT(t1."DivisionCode") = 0))) ---- -the query would not restrict at all. The restriction has to be converted. Instead of using EXIST is is necessary to use NOT EXIST (4) together with a comparison to not equal zero (5): +the query would not find anything, as the sub-query does not return a result. The restriction has to be converted. Instead of using EXIST is is necessary to use NOT EXIST (4) together with a comparison to not equal zero (5): [source,sql] ---- SELECT