web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Relation vs Join ??? Difference??

(0) ShareShare
ReportReport
Posted on by

Sorry for such a simple Question .. I am new to AX ,,,

Please tell me the difference between Relation and Join???

Explain in detail please

*This post is locked for comments

I have the same question (0)
  • Pravasti AK Profile Picture
    2,985 on at
    RE: Relation vs Join ??? Difference??

    Hi,

    Please refer the below link:

    https://community.dynamics.com/ax/f/33/t/189742

  • yasu Profile Picture
    on at
    RE: Relation vs Join ??? Difference??

    thank u , but I have seen that Link before ..It is so hard to understand .. I dont get it :(

    ...I cant understand

  • Pravasti AK Profile Picture
    2,985 on at
    RE: Relation vs Join ??? Difference??

    Hi,

    Normal Relation: enforce referential integrity such as foreign keys. For displaying lookup on the child table.

    Field fixed: works as a trigger to verify that a relation is active, if an enum field in the table has a specific value then the relation is active. It works on conditional relations and works on enum type of data.

    Ex- Dimension table

    Related field fixed: works as a filter on the related table.it only shows records that match the specified value for an enum field on the related table.

    InnerJoin: Selects records from the main table that have matching records in the joined table and vice versa. There is one record for each match. Records without related records in the other data source are eliminated from the result.

    OuterJoin: Selects records from the main table whether they have matching records in the joined table.

    And the other records also shown in the main table.

    ExistJoin: Selects a record from the main table for each matching record in the joined table.

    The differences between InnerJoin and ExistJoin are as follows:

    -                      When the join type is ExistJoin, the search ends after the first match has been found.

    -                      When the join type is InnerJoin, all matching records are searched for.

    NotExistJoin: Select records from the main table that do not have a match in the joined table.

  • Suggested answer
    Community Member Profile Picture
    on at
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Relation vs Join ??? Difference??

    All programmers are getting educated (or at least should be) during their studies on Relational databases. You even get one if you try to get the European Computer Drivers' License (ECDL) in school when they show you what an Microsoft Access database is about.

    Relations are not different within AX from what you (should) have studied. The only important piece is that AX fields are using building blocks of Extended Data Types (can be linked to a specific table), and Base Enumerations (links cannot be defined). Now if you use such building blocks for your table, AX automatically assumes the relation defined on the EDT, thus you will have a drop-down selection available for the records, if it is the surrogate key, such as EDT SalesId with table SalesTable.

    Then again as normal for relational database, you can define the relations on Tables too, where you may even link not just a single field like in case of an EDT, but multiple ones, or associate fixed values for Base Enums.

    Joins are the way of linking together multiple tables when you are querying the database, since statements do not care about your relations - unless you use the Query interface.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans