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.

Operation in conditions in the where clause database view

Ariomar de Deus
Tera Contributor

I'm creating a database view to create a report to show only item ABC and its respective variables, but it's not bringing the data, I believe it's the where clause conditions, could someone help me!

 

imagem.jpg

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

I'm not sure I understand your requirements - why you need the sc_cat_item table.  You can report on the sc_task table and see fields from the sc_req_item table via the parent or request_item field, and variables/values without a database view. If you want to continue with this approach, it should look more like this:

BradBowman_0-1737139505852.png

 

View solution in original post

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

I'm not sure I understand your requirements - why you need the sc_cat_item table.  You can report on the sc_task table and see fields from the sc_req_item table via the parent or request_item field, and variables/values without a database view. If you want to continue with this approach, it should look more like this:

BradBowman_0-1737139505852.png