database view on 3 tables

mregragui_ext
Tera Contributor

Hello i want to create a database view on those 3 tables asmt_assessment_instance, asmt_assessment_instance_question, and task based on ticket number .

Can someone help me to do this.

Thanks

8 REPLIES 8

AndersBGS
Tera Patron
Tera Patron

Hi @mregragui_ext ,

 

Why create a database view when you can dot-walk OOTB?

 

AndersBGS_0-1697575761364.png

Create a report based on the [asmt_assessment_instance_question].

You then have the question, the instance, and can dot-walk by instance.task to the task table as shown above.

 

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/

Hi @AndersBGS 

Because i need information in asmt_assessment_instance can you help me with joining the 3 tables ?

Hi @mregragui_ext ,

I agree with @AndersBGS point that we can build the report from asmt_assessment_instance_question table and you can dot walk to get the instance and instance.task from question itself
You can choose the columns whatever you want
Refer Below Screenshots:

Screenshot 2023-10-18 at 4.03.15 PM.png

Navigate to Configure>Choose Columns and you can choose columns from Instance field as well

Screenshot 2023-10-18 at 4.05.33 PM.png

Screenshot 2023-10-18 at 4.07.43 PM.png

Click the highlighted icon and you can choose the fields from instance table

Similarly for instance.task

Screenshot 2023-10-18 at 4.16.09 PM.png

So your final report will have the fields from all the three tables

Screenshot 2023-10-18 at 4.18.58 PM.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Uday

@AndersBGS  i need a database view where all tasks are visible and the survey results in the asmt_assessment_instance_question i only have the tickets that has a survey