Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Ideas] Ability to use aggregate functions inside where statements

$
0
0

Hey guys,

I'm currently doing some queries where I'm in the need to filter results where my grouping has an occurance above a certain threshold, eg. COUNT(T1.MyField) > 3
Where T1.MyField is being used in my Group By.

My current workaround is setting it up within the aggregate by adding a count on MyField, after which I have a foreach, where I filter out all entries which fall under the threshold.

It would be nice to atleast be able to do something like a HAVING statement, since I can imagine using aggregate functions in a WHERE statement can be problematic.



Viewing all articles
Browse latest Browse all 1476385

Trending Articles