database view question

drslry2
Tera Contributor

Hi gurus,

I'm attempting to create my first database view and between a custom table that looks like this...

drslry2_1-1711040948739.png

and the 'Business Application' class...using the following left join...

drslry2_0-1711040736599.png

...however it returns no records.

Any idea what to join on in this case?

thanks in advance.

Rob

 

7 REPLIES 7

It's really just between two table, one of them is defined as follows...

drslry2_1-1711383569019.png

drslry2_2-1711383619195.png

and the other table is the Business Application Class

drslry2_3-1711383854968.png

 

...and this is how I currently have the join define (incorrectly)....

 

drslry2_0-1711383350790.png

 

Hi @drslry2 ,

 

The configuration item column on the business application table - is that custom? As far as to my knowledge there is no Configuration Item on that table?

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @drslry2 ,

 

See the below example along with video :

 

https://www.servicenow.com/community/in-other-news/database-views-left-joins-and-filters-video/ba-p/...

 

SohailKhilji_0-1711350984338.png

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect