2,299
edits
Changes
no edit summary
=Overview=
This article will run you through the process of creating one of the most useful [[Reports|reporting]] features available in a [[SmartSimple]] [[instance]]: the ability to relate information from two recordsets (tables) into a single report.
=Connecting Multiple Recordsets for a Report=
1. Click the 9-square menu icon on the top right of your page.
4. The '''New Report '''page is displayed, with fields for you to fill out.
:: [[File:New report pagReports multiple tables new.png|700px800px|border]]
For this example exercise, fill out the following fields with the corresponding information:
* '''Report Name: '''List Companies and Contact
* '''Report Description: '''Joins This report joins the company and contacts table.
5. Click the '''Save '''button.
:: [[File:Company and contact inner join.png|250px|border]]
: :* The '''Organizations '''recordset will report on company information that you have entered into the system, including all organization-specific [[Custom Fields]] that are related to organizations.:* The '''Contacts '''recordset will report on all contacts ''outside ''of your organization (although this does not automatically mean that they are [[External|}external]] [[User|users]]). This table will include all contact-specific and [[User Role|role]]-based [[Custom Fields]]. 8. Scroll down to the bottom of hte the page and click '''Save.'''
=Inner and Outer Joins=
There are two types of joins supported in [[SmartSimple]] – inner joins and outer joins.
: 2: [[File:Recordsets multiple table example. Add the '''following fields'''png|700px|border]]:: [[Image:Reps98.png]]:* The '''Field''' list now contains fields from both tablesSee [[Reports#Classic Report Builder - Column Settings|Classic Report Builder - Column Settings]] for more information about the report builder columns.
3. '''Build''', '''save''', and '''preview''' the report.
:: [[Image:Reps97.png]]::* The company name, city, and state information is displayed from the company table for each matching record from the contact table.::* No company details will be displayed if there are no contacts.
{{PrevNextStart}} [[Creating a Public – Internet Enabled Report]]