- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 10:23 PM
Team,
I am creating database view for two tables. cmdb_ci_hardware & Problem records with left join.
It should show for how many CIs problem was raised plus rest of CIs (with no any problem ticket raise)
But its not showing any records.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 11:13 PM
Shouldn't it be 'hwd_sys_id=prb_cmdb_ci'? You are checking if the sys_id of the CI is the same as the sys_id of the problem. That will never be the case.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 10:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 11:13 PM
Shouldn't it be 'hwd_sys_id=prb_cmdb_ci'? You are checking if the sys_id of the CI is the same as the sys_id of the problem. That will never be the case.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 02:34 AM
Thanks. Its working & showing records from hardware table for which problem is raised.
But left join not working. (Like its not showing all recrods)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 12:05 AM
Hi @chaitanyaya ,
SysId of problem table and hardware table is never be the same , you should take some other variable instead sys_id like I did with assigned_to
Hardware_assigned_to= Problem_assigned_to
Result
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak