Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Join tables from different NAV databases

(0) ShareShare
ReportReport
Posted on by 30

I need to have the data from one particular table that are available in four NAV dbas (4 different tables), consolidated in one table. I believe that the procedure would be to create an extra table in one of the dbas that will pull information from the 4 tables and consolidating it. I would also need to create in this new table, a column reporting where the data came from. Ideally, I would have to create a routine of updating this table every 10th of each month.
 
My question: Is it possible to do the described procedure? Is it very complicated?
 
I would really appreciate some help. Thank you! Sandra

 

*This post is locked for comments

  • Suggested answer
    Re: Join tables from different NAV databases

    Hi Sandra,

    You might need to add a little extra to your post in order to determine how people may answer.

    1) Are you using SQL databases?

    2) Do you want this table to be available for reporting/use in Navision?  Or for another external system?

    For example:

    1) If SQL databases.

    2) If you want the consolidated table to be available outside of Nav

    3) If the tables contain EXACTLY the same fields.

    4) If you want to just combine all the results together (not removing duplications)

    In this specific situation you could utilise what is termed a UNION query within SQL.  The UNION ALL option will allow you to join the tables together, and will just combine all the records (as it assumes the fields are the same).  There is even an option to add a "Text string" to determine what records came from what tables.

    This is a good page - office.microsoft.com/.../combine-the-results-of-several-select-queries-by-using-a-union-query-HA010206109.aspx

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans