Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Creating database view between metric result and Assessment Instances

mregragui_ext
Tera Contributor

Hello community, i want to create a database view with left join between Assessment Instances and metric result to have all the result of the two tables combined.

This is an urgent need can someone help me on this.

Thanks

5 REPLIES 5

AndersBGS
Tera Patron
Tera Patron

Hi @mregragui_ext ,

 

Why create a database view when you can "just" dot-walk from asmt_metric_result --> asmt_metric_instance:

 

AndersBGS_0-1697021102295.png

 

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/

@AndersBGS Because I need also the survey sent and not answred 

Hi @mregragui_ext ,

 

Ok, then you could also look at the table "asmt_assessment_instance_question" which contains both question answered and not answered, and you can dot-walk to the instance if needed.

 

Not answered = value is empty

AndersBGS_0-1697023823125.png

 

Answered = value is not empty

AndersBGS_1-1697023904206.png

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/

@AndersBGS  please can i access the value of satisfaction from the  Assessment instances tables?