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)

How "Cardinality" relation is work in table

(0) ShareShare
ReportReport
Posted on by 30

Dear All,

Can you please let me know how "Cardinality" relation is work in table.

Please give me an example.

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

I have the same question (0)
  • Sridhar Narayanan Profile Picture
    1,027 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Hope the below link would help you.

    https://community.dynamics.com/ax/b/axfaqblog/archive/2016/08/16/understanding-the-tables-cardinality-concept

    Cardinallity Description:

    The number of times that each primary key value from the referenced table must occur in the foreign key column of the present table.
    For example, the value OneMore means one or more, but not zero. It means that every parent key value must occur in the child table’s foreign key column at least one time. A relation node under a SalesLine table could use the OneMore value when the business rule requires that every record in the parent SalesTable table relate to at least one item that is being sold.
    In Microsoft Dynamics AX 2012 this property is not yet used by the system. Future releases of the product can potentially use this property, and the RelatedTableCardinality property.

  • Sridhar Narayanan Profile Picture
    1,027 on at
    RE: How "Cardinality" relation is work in table

    Hi Arpan,

    Kindly mark as "Verified" if you get a solution to close the thread.

    If you didn't get required answer, please post the your query in detail so that other experts in the group would provide you help.

    Thanks,

    N.Sridhar

  • @rp@n Profile Picture
    30 on at
    RE: How "Cardinality" relation is work in table

    Thanks Sridhar,

    i also go through the link and little bit understand.

    Can you please give me an example of each Cardinality based on

    ZeroOne,

    ExactlyOne,

    ZeroMore,

    OneMore

    Please give me an example.

    Thanks!

    Arpan

  • Martin Dráb Profile Picture
    236,336 Most Valuable Professional on at
    RE: How "Cardinality" relation is work in table

    You have a plenty of examples in the standard application, simply search for the particular property value you're interested in.

  • @rp@n Profile Picture
    30 on at
    RE: How "Cardinality" relation is work in table

    I serached with particular value but not understand.

    Can you please any one give me an example for :

    ZeroOne,

    ExactlyOne,

    ZeroMore,

    OneMore

    means if i set value ZeroOne then what will happened etc...?

    Please give me more shed on this.

    Thanks!

    Arpan

  • @rp@n Profile Picture
    30 on at
    RE: How "Cardinality" relation is work in table

    Can you please any one help me on this.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    I could see lot of explanation provided by others, for your brevity explaining again. Cardinality is the property which explains about nature of the relationship between two tables on the related table.

    For example:

    ZeroOne: You will select this, provided child Table/related table can either have no record or have only one related record (Fetch Mode is 1:1).

    ExactlyOne: You will select this, provided child Table/related table can have only one related record (Fetch Mode is 1:1). 

    ZeroMore: You will select this, provided child Table/related table can either have no record or more than one related record (Fetch Mode is 1:n).

    OneMore: You will select this, provided child Table/related table can have more than one related record (Fetch Mode is 1:n).

    Can you provide details about your business requirement such that we can help you better.

  • @rp@n Profile Picture
    30 on at
    RE: How "Cardinality" relation is work in table

    Hi Chaitanya,

    I have 2 Tables :

    Header Table : CrateHeadertable

    Fields : CrateID, Name

    Line Table : CrateLineTable

    Fields : CrateID, Qty, Price

    RelationCrateLineTable.CrateId == CrateHeaderTable.CrateId

    7345.d1.JPG

    Note : Cardinality should be OneMore because it's 1:n relation

    Is't correct?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    I would recommend to go for ZeroMore, if your CrateHeaderTable can have record without line(Check relation salesTable on table SalesLine) or else its OneMore(as pointed by you).

  • @rp@n Profile Picture
    30 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    if your CrateHeaderTable can have record without line means ??

    Please give me more shed on this.

    Thanks!

    Arpan

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
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans