Database View - Viewing Related Lists under a Change Request

Patrick Rodrigu
Tera Contributor

Hello, 

I'm trying to create a database view to show related items under a change request (for reporting purposes) 

find_real_file.png

Below is what I've created so far: 

find_real_file.png

What am I missing?

Thank you for any help/guidance!

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

That is because all the above Where Clause conditions are taken as AND & not OR

View solution in original post

6 REPLIES 6

Jaspal Singh
Mega Patron
Mega Patron

That is because all the above Where Clause conditions are taken as AND & not OR

Can you explain a little further for me?

I mean when you try above it will look for  a change request that has Problem, RITM, Incidnet all associated to a particular change reqeust. 

In case, if a change has only problem then it will not show up as the above will be an AND for all the Where clauses.

Ah OK that makes sense. So for the problem table what could I change the Where Clause to?