{"id":1163,"date":"2025-01-21T13:29:14","date_gmt":"2025-01-21T19:29:14","guid":{"rendered":"https:\/\/asberry.org\/blog_tech\/?p=1163"},"modified":"2025-01-21T13:29:14","modified_gmt":"2025-01-21T19:29:14","slug":"listagg-for-one-to-many-concatenation","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=1163","title":{"rendered":"ListAgg for One to Many Concatenation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve had to do this for a couple of reasons, mainly job types and such in the talent user entity and then again in any one to many users like groups and types.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\n&lt;quer:projection id=&quot;listAggJobType&quot; alias=&quot;JobType&quot;&gt;\n\t&lt;quer:query projectedClass=&quot;Application&quot; alias=&quot;talentUserJobType&quot;&gt;\n\t\t&lt;quer:projections&gt;\n\t\t\t&lt;quer:projection alias=&quot;talentUserJobType_list&quot; projectedValueType=&quot;string&quot;&gt;\n\t\t\t&lt;quer:customFunction name=&quot;listagg&quot;&gt;\n\t\t\t\t&lt;quer:field path=&quot;Candidate,TalentUser,JobTypes,Description&quot;\/&gt;\n\t\t\t\t&lt;quer:string&gt; ~ &lt;\/quer:string&gt;\n\t\t\t&lt;\/quer:customFunction&gt;\n\t\t\t&lt;\/quer:projection&gt;\n\t\t&lt;\/quer:projections&gt;\n\t\t&lt;quer:filterings&gt;\n\t\t\t&lt;quer:filtering&gt;\n\t\t\t\t&lt;quer:equal&gt;\n\t\t\t\t\t&lt;quer:field path=&quot;Number&quot;\/&gt;\n\t\t\t\t\t&lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;Number&quot;\/&gt;\n\t\t\t\t&lt;\/quer:equal&gt;\n\t\t\t&lt;\/quer:filtering&gt;\n\t\t&lt;\/quer:filterings&gt;\n\t&lt;\/quer:query&gt;\n&lt;\/quer:projection&gt;\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had to do this for a couple of reasons, mainly job types and such in the talent user entity and then again in any one to many users like groups and types.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-1163","post","type-post","status-publish","format-standard","hentry","category-uncategorized","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-iL","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/1163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1163"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/1163\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/1163\/revisions\/1164"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}