
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:32 AM
Is it possible to join an archive table in a database view?
I have a request to create a report that would include records on the archive table and the incident table. Creating a report for both tables is preferred over changing our Archive Rules for Incident. The database view seems like the best option, and I am attempting to create one, but the database view table is missing records.
Any help is appreciated.
Thank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:56 AM
Thanks all for your inputs. The best solution I found was to create bar report based off the INC table and then add a dataset for the ar_incident table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 10:07 AM
If the "ar_incident" table is not selectable in the database builder than you cannot build a database view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 02:56 PM
I am able to add the ar_incident and the incident tables to the builder. However, I am not getting as many records as I would expect. The ar_incident table has 675,554 records and the incident table has 130,045 records. Oddly the database view also has 130,045 records, of which 184 are from ar_incident and 129,861 are from incident. My goal is to fully combine the two tables so the total records should be 805,599.
I do not have a Where clause in place. Could that be this issue? Or is a configuration somewhere else that I am missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:29 PM
Double-check your query logic to ensure you're joining the archive table (ar_incident) correctly with the incident table. Make sure you're using the appropriate keys or columns to join these tables. A mistake in the join condition could result in missing records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2023 12:24 PM
Post a screenshot of your database view, add 'Left join' to the column list of the View Tables. then folks here can assist better. there are plenty of Database View examples in your instance.