The CreatorCon Call for Content is officially open! Get started here.

Database View Where Clause

Yanal
Giga Guru

Hello everyone! 

I need help with the where clause for this database view 

I want All requested items, catalog tasks connected to the requested items and the SLA connected to the catalog task! 

how can I achieve this ?

screenshot is also attached!

thanks a bunchfind_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

please update the below:

1) change the order of the view tables

2) use where clause as per screenshot

3) ensure you add below fields for view fields in respective view tables

Screenshots below:

find_real_file.png

RITM View Table Fields:

find_real_file.png

Catalog Task View Fields:

find_real_file.png

Task SLA View Fields:

find_real_file.png

When you do try it; add these columns using gear icon:

find_real_file.png

Output:

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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Hi @Ankur Bawiskar , How to use OR and AND condition in the Where caluse?

example - mi_definition = '35f0791ac0a808ae008f0a2b1dc1030c' || mi_definition = 'd8b13ddb47b24a50907b767b416d4320'