How can I fetch distinct records from a query?
sreray
✭
Does J1QL support the use of DISTINCT keyword (or something similar) to fetch distinct records?
0
Best Answer
-
J1Ql doesn't support the keyword DISTINCT, but aliasing the return statement can typically categorize results in the same way. In this case find Unique aws_instance as ec2 return ec2.region, COUNT(ec2) should suite your need!
0
This Month's Leaders
Categories
- 336 All Categories
- Featured Categories
- 7 About the AskJ1 Community
- 11 Product Announcements
- From Mission Control
- 1 Rapid Response
- 3 How J1 Uses J1
- Topics
- 131 Asset Management
- 56 Compliance & Reporting
- 65 Security Operations
- 40 Security Engineering
- 5 Open Source
- 18 News, Careers and More