Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Issue with Database View, Not able to fetch records

David Cross
Tera Expert

i have 2 tables to join

Table 1 : asmt_assessment_instance

Table 2 : asmt_assessment_instance_question

i am trying to join both the tables but unable to do so, please help me here. below is my condition to join

 

DavidCross_0-1719839031286.png

 

My Condition which is added in DataBase view, what did i do wrong here. please help 

DavidCross_1-1719839107001.png

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Hi David,

You should always have different Order numbers for each table in a join, with the Where clause being on the table with the higher Order.  Since the instance field on the question table is a reference it's storing a sys_id, so your Where clause on the second table should be

 inst_sys_id = que_instance

 

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

Hi David,

You should always have different Order numbers for each table in a join, with the Where clause being on the table with the higher Order.  Since the instance field on the question table is a reference it's storing a sys_id, so your Where clause on the second table should be

 inst_sys_id = que_instance

 

Hey Thank you @Brad ..