Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Database View select data from 2 tables

Piotrekek
Kilo Explorer

Hello,

I've been struggeling with this issue for a long time and can't find a fix - I need to create a report based on the Problem and Incident tables. All I need to do is create a database view with the records listed from incident and problem - without any left joins, just the records selected from these two tables. Any suggestions? Thanks.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

Hi,

incident has a field problem_id which stores the problem record; so if you join using these 2 tables using that field then you can see those incidents which has problem associated to it

create database view and use where clause as below

find_real_file.png

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron

Hi,

incident has a field problem_id which stores the problem record; so if you join using these 2 tables using that field then you can see those incidents which has problem associated to it

create database view and use where clause as below

find_real_file.png

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader