Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Query Retrieval Sequence

(0) ShareShare
ReportReport
Posted on by 2

 Hi,

 

Can anyone explain why the join property on a data source is used to determine the sequence in which records are retrieve in an AOT query. This is documented here:

http://msdn.microsoft.com/en-us/library/bb314836.aspx

It seems perverse to me that you would use this property for this purpose. Being unable to use an inner join when you have multiple data sources on the same level would give you adverse results from the query.

Does anyone have any comment?

Cheers,

Nick

 

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,354 Most Valuable Professional on at
    Re: Query Retrieval Sequence

    What other solution would you use, taking into account how tables are defined in AX? In SQL, you basically get one new "table", but AX has fixed "classes" describing database tables. When you call QueryRun.next(), data must be fetched somehow to individual tables used in the query().

    If you have, let's say, a header and few lines joined together, the first next() fetches the header and the first line, a subsequent next() fetches the second line etc.

    If the relation is 1:1, it's all basically the same, QueryRun will just always fetch both records together.

    Or what else did you mean?

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans