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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to join MainAccount to MainAccountCategory?

(0) ShareShare
ReportReport
Posted on by 150

Hi,

Is there any easy way to join the two tables MainAccount and MainAccountCategory? 
I am looking for a join, something like dbo.MainAccountStaging.MAINACCOUNTCATEGORY = dbo.MainAccountCategoryStaging.MAINACCOUNTCATEGORY
But mainaccountcategory column is not in MainAccount table.

I have the same question (0)
  • Verified answer
    abdultp Profile Picture
    867 on at

    Hi Agneum,

    You can relate mainaccount & mainaccountcategory tables using AccountCategoryRef field. For SQL you can use

    dbo.MAINACCOUNTCATEGORY.ACCOUNTCATEGORYREF = dbo.MAINACCOUNT.ACCOUNTCATEGORYREF

    If you need to know how tables are related, you can check it in AE in the 'relations' section of table

  • agneum Profile Picture
    150 on at

    Thank you. I missed that column for some reason. It wasn't shown in the table browser

    mi=SysTableBrowser&TableName=MainAccount

    Do you know why this might be?

  • agneum Profile Picture
    150 on at

    I think I will use this "AE" , I assume this is in Visual Studio? Can you please clarify?

  • Suggested answer
    abdultp Profile Picture
    867 on at

    Application Explorer in VS

    pastedimage1652889016686v1.png

  • agneum Profile Picture
    150 on at

    Wonderful, thank you!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans