Database View is not showing results

ServiceNowSteve
Giga Guru

Good Afternoon All,

I am attempting to dive into Database Views and I have created a simple view based off of a video I watched (below)

After joining my incident table and my company table I added a WHERE clause to the incident table that attempts to pull records where the "company" field on my incident table matches the "name" field on the company table.

After I "Try It" I get nothing in return, any idea why? I do know that there are records on our Incident table that match these names.

1.png

2.PNG

My Reference Video...picks up around 9:55

1 ACCEPTED SOLUTION

Try using all underscores: inc_company = comp_sys_id


View solution in original post

6 REPLIES 6

Tim Deniston
Mega Sage
Mega Sage

The Company field on Incident stores a sys_id, so you want to compare it to the sys_id field on the Company table.


How would I do that? After your reply I tried



inc.sys_id = comp.sys_id and inc.company = comp.sys_id and got nothing.


Hmm wait a sec...I applied Left join just for fun and it seemed to bring up results...


So despite it working with a left join it seems to not pull data from the company field now. The fields show but no data