Skip to content
+1-888-319-3663

EONE BLOG

Tech Tuesday: Table Joins in SmartList Builder


Our Product Specialist, Nicole Albertson, will be clearing up the confusion around which Link Method to use when you are joining two tables in SmartList Builder for today’s Tech Tuesday. 

Equals:
This option will exclude any records that don’t exist in both tables from the results. A record must exist in both the table you are linking and the table you are linking it to for it to be included in the results. 

Left Outer: 
This option will include all of the records from the first table and all matching records from the second table.

For example:
Let’s take the Customers and their addresses. You can have a customer without entering an address, but you cannot enter an address without entering a customer.

So, if I use an Equals join between the Customer Master and the Customer Address Master, I am only going to get the customers that do have addresses.

If I use a Left Outer join, I will get all the customers and the address if they have one. 

Table Order in the Link:
The other thing to take into consideration with this is the order you link the tables into the SmartList Builder setup.

If I add the Customer Master table and then link the Customer Address Master table to it using a Left Outer join, I will get all the customers and then any addresses the customers have saved.

If I add the Customer Address Master table and then link the Customer Master table to it using a Left Outer join, I will get all the addresses and any customer information for those addresses. I will not get the customers that don’t have addresses.

If I add the Customer Master table and then link the Customer Address Master table to it using an Equals join, I will get only the customers that have addresses saved and those addresses.

If I add the Customer Address Master table and then link the Customer Master table to it using an Equals join, I will get all of the addresses and any customer information for those addresses. This is because you cannot have a address record without the customer record being there as well. If a customer doesn’t have an address, they will not be returned as they aren’t in both tables. 

Side Note:
The Left Outer join is almost always slower than an Equals join. A Left Outer has to do all the work of an Equals plus the extra work of null-extending the results. It would also be expected to return more rows, further increasing the total execution time simply due to the larger size of the result set.

Hopefully this helps you think about how you might link the tables in your setup. If you are in doubt, try it a couple of different ways and see if you get the results you would expect. You can always change it.

Interested in learning more about SmartList Builder? Email sales@eonesolutions.com for more information!

1 Comment

  1. Dinora Doss on May 18, 2017 at 10:46 am

    Nicole,

    I am getting duplicates because of I have 4 different tables. How do I eliminate that issue?

    Thanks,

    Dinora

Leave a Comment





RECENT POSTS


eOne at Summit North America 2021
Employee Spotlight: Megan Tripp, Business Development Representative
eOne is now compatible with Microsoft Dynamics GP October 2021 Release
October 2021 Releases of Extender, SmartList Builder, SmartView, SmartPost, and Flexicoder are Now Available
Advanced SmartConnect REST Web Services Integration - October 2021

POPULAR POSTS


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
2017 SmartConnect Integration Bootcamps
New Releases of Extender and SmartList Builder

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.