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

Support new alteration "exists" (equi-join) #681

Open
Seddryck opened this issue Apr 24, 2022 · 0 comments
Open

Support new alteration "exists" (equi-join) #681

Seddryck opened this issue Apr 24, 2022 · 0 comments
Milestone

Comments

@Seddryck
Copy link
Owner

It should be possible to filter a result-set based on the content of another result-set. At the moment only equi-join conditions should be supported but could be extended in the future.

All rows of the initial result-set having no corresponding row in the second result-set are filtering out.

<result-set>
  <query>
    select 'a' as f0, 'FOO' as f1, null as f2 union all select 'B', 'bar', 'quark'
  </query>
  <alteration>
    <exist>
      <result-set>
         <query>
             select 'FOO' as Ref, 'Boo' as f0 union all select 'quark', 'Boo'
         </query>
      </result-set>
      <condition>
           <mapping candidate="f1" reference="Ref" />
      </condition>
    </exist>
  </alteration>
</result-set>
@Seddryck Seddryck added this to the v2.1 milestone Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant