
- 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-22-2023 10:31 AM
Here is the screenshot of what I have so far. I found this order provides the most records (130,046) but still not the entire list I am looking for.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 11:03 AM - edited 08-22-2023 12:00 PM
I don't see a 'where' clause to link the two tables. Since ar_incident is for Archiving incident records, and contains records from the incident table, why is a database view needed?
see:
I understand what want now, try setting Left join to true on both. I'll test in my instance soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 12:10 PM
Hi User175049,
I can't get a database view to work, to show all records in both tables. I don't see anyway to join the two tables. Seems you'll need to restore archived records, but I expect you don't want to do that.

- 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.