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

Ankur Bawiskar
Tera Patron
Tera Patron

@mregragui_ext 

so what did you start with and where are you stuck?

it should be an easy one

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

i have join the two tables and i want to add the task table can you tell me what to do in the where clause please 

db view.png

 

Hi @mregragui_ext ,
You can combine the task table like below screenshot
As we have trigger_id as a task record (i.e. incident or any other record)
Screenshot 2023-10-17 at 7.43.05 PM.png

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

Hi @Uday Soni05 

mregragui_ext_0-1697623902249.png

I have this error

mregragui_ext_1-1697623936292.png