- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 01:43 AM
Hi All,
To do this I'm trying to create a database view joining the problem_task and Attachments( Sys_attachment) table. Need a report view that displays the count of all closed problem tasks containing attachments, Now how do I filter the sys_attachment table to only show closed problem_tasks? I can see problem_task but how do I know if they are closed.
So I need to build a database views on this table sys_attachment AND problem_task. Please give me the some suggestion to this.
Thank you.
Vid
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 07:08 AM
Hi @Vidya Aeil ,
Is the response answers your question? If yes please mark my response as accepted solution and close the thread.
Thank you,
Palani
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 01:50 AM
Do the following:
- Create Database View
- Add first table as problem_task with variable prefix as prb
- Add Second table as sys_attachment with variable prefix as attach
- set condition in second table as below:
attach_table_name=problem&&attach_table_sys_id=prb_sys_id
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 02:18 AM
4.
- set condition in second table as below:
attach_table_name=problem&&attach_table_sys_id=prb_sys_id
This is I need to put in Where clause Right
Thank you.
Vidya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 04:58 AM
Please us this in the where clause. I tested in my PDI, it is working fine
attach_table_name="problem_task"&&prb_sys_id=attach_table_sys_id
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:55 AM
Thank you Palani .