- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2025 05:36 AM
Hi All,
I am trying to create a database view by joining cmdb_ci_api & cmdb_ci_api_component table
Purpose of this join is to find out which to find parent child relation ship between them.
I created a database view as but I am little bit confuse what where clause I need to use in this case.
Currently I am using in cmdb_ci_api_component -- com.sys_id=api.sys_id
and
cmdb_rel_ci -- rel.parent=api.sys_id
But this not working currently.. kindly assist me in this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 04:36 AM
hi @keshav77
No Actual Relationships: You might have cmdb_ci_api and cmdb_ci_api_component records, but no actual relationship records (cmdb_rel_ci) have been created between them.
Incorrect Relationship Type: The most frequent culprit. The type.name you're using ('Used by') does not match the actual relationship type defined in your CMDB for these CIs.
No Data for One of the Tables: If any of the three tables (cmdb_ci_api, cmdb_ci_api_component, cmdb_rel_ci) are empty or lack records that meet the join criteria, the view will be empty.
This helps isolate if the issue is with the relationships themselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 08:33 AM
@Jaspal Singh do you have any suggestion on this