1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Openedge Equivalent of SQL's outer apply

Discussão em 'StackOverflow' iniciado por fdantas, Junho 15, 2017.

  1. fdantas

    fdantas Administrator Moderador

    I have two tables I need to "join" together.

    Employment Table

    First Middle Last ID
    ------- ------- ------- ------
    John Manly Doe 12345


    Job Responsibilities

    ID fkEmploymentID Title Main Role
    --- ---- ----- -----
    1 12345 Worker bee True
    2 12345 Honey Sucker False


    So if I do a typical join, I'd get two records. I only want one record with the main role (true).

    Normally in SQL I'd do and Outer apply / select to take the record I want. However, this doesn't seem to be supported on Openedge.

    This is OpenEdge 11.1.

    Continue reading...

Compartilhe esta Página