- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-17-2026 11:20 AM
Hello,
I would like to gain a clearer understanding of how the join operator functions within RQL.
Below is an example query I am currently working with:
I have the following questions:
In this scenario, if the first query returns 10 EC2 instances and the second query returns 100 AMI images, what would be the resulting values or structures of X and Y?
When the filter condition is applied, how are these datasets compared? Specifically, does the evaluation involve comparing the imageId of each EC2 instance with the imageId of each AMI image (i.e., performing a 10 × 100 comparison), or is a different mechanism used?
Thanks,
Suranjit
03-17-2026 11:24 AM
Hey Paul!
As for your first question, more than likely you would get the number of responses in which the image named matched the AMI image name. From what I've seen in the past, it would just repeat, so you'd get 100 results.
As to your second question, remember that we are not working with datasets in the strictest sense of the term. Instead, we are working with string values obtained from JSON output. So the matches need to be very literal.
Hope this helps!
04-07-2026 08:39 AM
Thank you.
So, after the first RQL is executed, what would that 100 results (for example) include?
What I am trying to understand is that would the result include the entire JSON output for evey EC2 and every AMI image or just a specific key/value?
04-08-2026 05:47 AM
Hey Paul!
By default, the behaviour is that the output that is displayed in the console will include the JSON output for each resource that you can explore and search ( </> ). However, if you download the results or if you're creating a csv programmatically, you will just get the data that is in the table and not the JSON data. Of course, you can allways use the "addcolumn" function to add additional columns to the output from within JSON data. Hope this helps!
04-29-2026 07:55 AM
Thank you.
Would you have a few examples on how to use the addcolumn function?
I am also looking into the documentation.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

