From 419eedff5e432e162332637ad83cb1fa57aa263e Mon Sep 17 00:00:00 2001
From: lukaseder
Date: Wed, 27 Jun 2018 15:50:04 +0200
Subject: [PATCH] [#7048] Document the FILTER clause
---
.../resources/org/jooq/web/manual-3.10.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.11.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.12.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.6.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.7.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.8.xml | 34 +++++++++++++++++++
.../resources/org/jooq/web/manual-3.9.xml | 34 +++++++++++++++++++
7 files changed, 238 insertions(+)
diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml
index 43698d372a..717ae43cd8 100644
--- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml
+++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml
@@ -7679,6 +7679,40 @@ GROUP BY AUTHOR_ID
Aggregate functions have strong limitations about when they may be used and when not. For instance, you can use aggregate functions in scalar queries. Typically, this means you only select aggregate functions, no or other . Another use case is to use them along with a as seen in the previous example. Note, that jOOQ does not check whether your using of aggregate functions is correct according to the SQL standards, or according to your database's behaviour.
+ Filtered aggregate functions
+
+ The SQL standard specifies an optional FILTER clause, that can be appended to all aggregate functions. This is very useful to implement "pivot" tables, such as the following:
+
+
+