How to create a report in servicenow using two different tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 06:32 AM
I have a table named "problem" and another table named "problem sla" where we get different details from the problem records. I believe it is possible to create a report using dataset with graphical view. However, my requirement is to create a List report using or merging both these tables which can provide all relevant details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 08:21 AM - edited ‎03-05-2025 08:25 AM
Hi @GaneshUrs
Problem_sla table contains fields from both problem and task_sla table.
So, you can use only problem_sla table to fulfill your requirements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 08:23 AM
Hi @GaneshUrs,
You should be able to build a database view to create a list view. If you can provide more details on what you are trying to achieve, we can help better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 08:28 AM
Using Database View
- Go to System Definition → Database Views.
- Click New and name it (e.g., problem_sla_view).
- Set Primary Table as problem.
- Click New Table, add problem_sla, and set the join condition:
- problem.sys_id = problem_sla.problem
- Save the Database View.
Create Report
- Go to Reports → Create New.
- Select Type: List.
- Choose the newly created Database View as the Data Source.
- Add required columns, filters, and sorting.
- Save and run the report.
Please accept and like my solution if it used for you...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 09:38 AM
Hi @GaneshUrs ,
the Problem SLA is a database view created form(problem and task_sla). It will contain the all the information you need.
you can create the report by just using problem_sla.
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya