Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is SUBQUERY #269

Open
jacebenson opened this issue Sep 13, 2021 · 1 comment
Open

What is SUBQUERY #269

jacebenson opened this issue Sep 13, 2021 · 1 comment

Comments

@jacebenson
Copy link
Owner

What is SUBQUERY

SUBQUERY is an undocumented close relative of RLQUERY - an encoded query keyword that lets one do joins in... encoded queries
I'm sure you have read about RLQUERY in docs page Encoded query strings.

For those interested, an example of SUBQUERY can be found in Relationship Related Tasks of Interaction [interaction].
RLQUERY is powerful
I use reports UI just to access it in a gui
I feel like a demo is needed as … joins is something i just keep poking at until i get it working

Thank you pok

@jacebenson
Copy link
Owner Author

All in all, the encoded query for a glide_list field pointing to sys_user would like like this:
javascript: 'SUBQUERYsys_id,user,sys_user_grmember^groupIN' + [array of group sys_ids] + '^EQ^ENDSUBQUERY^active=true^EQ'

SUBQUERYsys_id,user,sys_user_grmember

means INNER JOIN sys_user_grmember M ON M.user = <sys_user>.sys_id

groupIN' + [array of group sys_ids] + '

means WHERE M.group IN (...)

active=true

means <sys_user>.active = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant