From 301e403d22bdb2a621a1aba63e4d341beb83cc9d Mon Sep 17 00:00:00 2001 From: Alexey Date: Sat, 13 Nov 2021 20:00:00 +0000 Subject: [PATCH] link from EXISTS to WHERE --- docs/en/sql-reference/operators/exists.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/sql-reference/operators/exists.md b/docs/en/sql-reference/operators/exists.md index 20472314cab..c1d718e80ad 100644 --- a/docs/en/sql-reference/operators/exists.md +++ b/docs/en/sql-reference/operators/exists.md @@ -2,6 +2,8 @@ The `EXISTS` operator tests how many records are in the result of a subquery. If it is empty, then the operator returns `0`. Otherwise it returns `1`. +`EXISTS` can be used in a [WHERE](../../sql-reference/statements/select/where.md) clause. + !!! warning "Warning" References to main query tables and columns are not supported in a subquery.