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.

データベースビューのテーブル結合

tokuyamaharuyuk
Kilo Guru

データベースビューより、4つのテーブルを結合したい
設定、where句の記述がわからない(Where句が理解できていないです。)
対象テーブル
task、incident、change_request、problem
(2つはできた。task、incident)
4つは? できるのか?

 

1 ACCEPTED SOLUTION

Got it, so you can create a database view like this,

o join all the four you may need to create 3 records in view tables related records for a database view record. Keeping task as base you can join with other table.
task with incident : task_sys_id=incident_sys_id
task with problem: task_sys_id=problem_sys_id
task with change : task_sys_id = change_sys_id

View solution in original post

5 REPLIES 5

Got it, so you can create a database view like this,

o join all the four you may need to create 3 records in view tables related records for a database view record. Keeping task as base you can join with other table.
task with incident : task_sys_id=incident_sys_id
task with problem: task_sys_id=problem_sys_id
task with change : task_sys_id = change_sys_id