Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to join multiple tables?

Yuki21
Tera Expert
How to join multiple tables in ServiceNow?

<Sample SQL>
SELECT
 TABLE_1.AAA,
 TABLE_1.BBB,
 TABLE_2.CCC
FROM FROM
 TABLE_1 INNER JOIN
 TABLE_2 ON
 TABLE_1.DDD = TABLE_2.DDD
WHERE
 TABLE_1.EEE IS NULL
1 ACCEPTED SOLUTION

palanikumar
Giga Sage
Giga Sage

You can use database view. Refer the below URL for more details:

https://docs.servicenow.com/bundle/paris-platform-administration/page/use/reporting/concept/c_DatabaseViews.html

Thank you,

Palani

Thank you,
Palani

View solution in original post

3 REPLIES 3

palanikumar
Giga Sage
Giga Sage

You can use database view. Refer the below URL for more details:

https://docs.servicenow.com/bundle/paris-platform-administration/page/use/reporting/concept/c_DatabaseViews.html

Thank you,

Palani

Thank you,
Palani

Thank you
By the way, is it possible to combine VIEW and VIEW?

You can join database views. You need to add all the tables in both view to join them.

 

Please close the thread if my answer satisfies your question.

Thank you,

Palani

 

Thank you,
Palani