06-06-2023 05:25 PM
Is there a way to count the number of objects using ERQL?
In SQL, there is a count(*) or count distinct function that returns a number based on the criteria in the where clause.
Is there an equivalent of this in ERQL?
Thank you!
Solved! Go to Solution.
24-04-2024 09:38 AM
Hi,
You will need a macro to count the objects or you can use "Script Editor" to run script and count objects - example shown below:
Set NumberOfApps=GetSelection("Select [Application] Where [Creation Date] Between '1/1/2022' And '12/31/2024'")
Print "Number of Applications: " & NumberOfApps.Count
23-04-2024 05:06 PM
Hi, i´m used this query
[Component="Select [Application] Where [Creation Date] Between '1/1/2024' And '12/31/2024' "]
[ComponentProperty="Short Name"/]<br>
how count the numbers of object?
08-06-2023 05:40 PM
Hello,
no ERQL does not provide a count function.
You can launch the ERQL query then on the result execute the count.
To be more precise on the answers I need more context.
Where do you plan to use it ?