Skip to main content
Post a question

Notifications

Community site session details
Finance | Project Operations, Human Resources, ...
Answered

How to join MainAccount to MainAccountCategory?

Like (0) ShareShare
ReportReport
Posted on 18 May 2022 14:34:04 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.

  • Verified answer
    abdultp Profile Picture
    867 on 18 May 2022 at 15:26:50
    RE: How to join MainAccount to MainAccountCategory?

    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

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started
Loading started
Loading complete