on 2023 Apr 12 12:51 PM
Hello,
Is it possible to use an aggregation function in the WHERE Clause, or how should this be solved?
I get errors on these queries :
SELECT count(case_id) AS Cases, "CustomerName" as Customer FROM THIS_PROCESS
WHERE (count(case_id)>10)
SELECT "CustomerName" as Customer, count(case_id) AS Cases FROM THIS_PROCESS
WHERE (AVG("OrderSum (EUR)")>10)
whereas this is ok:
SELECT "CustomerName" as Customer, count(case_id) AS Cases FROM THIS_PROCESS
WHERE ("OrderSum (EUR)">10)
br. Åsa
So simple... 🙂
Thank you Stephan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.