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

Database view obstacle

kalakaramad_20
Tera Contributor

"Hi, I need help with a report in ServiceNow. I have a Standard Laptop field (true/false) in the product model table. When this field is true, I want the report to display all assets related to those models. However, the condition isn't working as expected. Any suggestions?"

kalakaramad_20_1-1732285363928.png

This assets from product model must be seen in the Reports, if the field is marked true.


Also have created database view for both tables but not able to figure out the whereclause.

kalakaramad_20_0-1732285324586.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@kalakaramad_20 

database view helps in joining 2 tables based on common field

what's your business requirement?

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

Abhishek Varma
Tera Expert

First add relevant fields from these tables to this database view, then figure out the common values between these two tables and then use the below logic.

chpm.field=ad.field

 

this should be in the product model table.