Database View - Duplicate Records under Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:08 PM
We have a database view that's used for reporting. It ties multiple tables together. However, when you report out you get duplicate cases because each child record appears as well. Is there any way to filter out the child records from reporting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:11 PM
Hi @Elizabeth26 ,
You need to re-visit the DB view table's column mapping with other tables.
Some of table mapping is giving this duplicate result.
You can disable some mapping and test the result.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:18 PM
Do you mean in the Where clause?
How can we pull the data from those tables without it actually showing the cases multiple times?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:20 PM
yes, in the where clause.
if the result is completely duplicate then you need to check the where clause condition
else, if only some columns has same values then its not a duplicate.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:24 PM
It's not a complete duplicate. It has additional field information we need but we don't want it to count towards the case count.
childtable.parent_case= maintable.sys_id