In the New to NetSuite | SuiteQL Overview article, we explored the fundamental concepts and capabilities of SuiteQL. When working with SuiteQL, it is important to understand how different SQL join types can influence your query results. SuiteQL supports multiple SQL join types, allowing you to customize the way data from related records is retrieved. This flexibility is especially useful when building reports or analyzing complex relationships between NetSuite record types.
Default Behavior in SuiteAnalytics Workbook
If you are using the SuiteAnalytics Workbook, it is helpful to know that the default join type is a left outer join. This join returns all records from the primary (left) table and matches records from the secondary (right) table. If there is no match, the result will still include the left table's data with nulls in the right table's columns.
While a left outer join is sufficient for many common use cases, there are scenarios where a different join type might be more appropriate to refine your results.
Supported SQL Join Types in SuiteQL
SuiteQL supports the following standard SQL join types:
- Cross Join
- Inner Join
- Outer Join
To explore this topic further, check out these resources:
By understanding and using these join types appropriately, you can enhance the power of your SuiteQL queries and tailor your data outputs more precisely to your business needs.
Stay tuned for upcoming articles on how to use SuiteQL Join Types in SuiteCloud Product Area. Stay updated by following the New to NetSuite > SuiteCloud category to receive notifications whenever new articles are published.