Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Query - outer join

Posted on by Microsoft Employee

Hello,

I am using the query in the AOT.

Can I join two tables in the query as "left outer join" (that if there are no data on the inner table - it should appear as null)?

Thanks :)

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Query - outer join

    Well, that I defenitly have tried, but with no success (I cannot drag to metadata, or any of the nodes a query object).

    Thanks :)

  • Amir Nazim Profile Picture
    Amir Nazim 5,994 on at
    Re: Query - outer join

    it is dragable to the metadata node of view.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Query - outer join

    How and where ? - I see I cannot drag query to the view (I cannot copy to datasource, or any node on the View).

    Thanks :)

  • Suggested answer
    Amir Nazim Profile Picture
    Amir Nazim 5,994 on at
    Re: Query - outer join

    create the AOT query, there you can specify the join mode to outer join. then drag the query to view.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Query - outer join

    Little confuse ... Maybe I didn't clarified myself ...

    It's view (not a query).

    What all I need is to use the view object in AOT, and do the simmiliar thing as "outer join" in Microsoft-Sql-Server. (Join two tables in outer join link).

    How can I do that?

    Thanks :)

  • Amir Nazim Profile Picture
    Amir Nazim 5,994 on at
    Re: Query - outer join

    this is not clear, the task you looking for have no data on inner table and you want parent table record to be null as well, that means parrent and child does not have any information so do you needed empty information ?

    or you looking inner where you can have from parents when you have related info in child.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,232 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans