- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:27 AM
Hi All,
I'm trying to create a database view to link a custom cmdb table and the case table.
When I add the cmdb table to the database view and click on 'try me' the table shows no records.
The purpose of this database view is to create a report which can look at an asset and see if there are any cases related to that asset.
Any help would be greatly appreciated
Thanks
Alex
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:48 AM - edited 01-29-2024 06:49 AM
Hi Alex
The where clause doesn't support the dot walking. You have to think about the correct condition
Something unique on the both table and write the query like below
here com is company and checking the user's company and give the correct data.
Both field should are referring to the same sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:36 AM
Hi Alex,
Please check the where clause you written the ppa it must be pp
Kindly consider marking the provided answer as correct if it proves helpful.
Thank you and best regards,
Siddhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:38 AM
Hi Siddhesh,
I have made that change, must have been a typo, but unfortunately I'm still not seeing any records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:38 AM
Hi @Alex319 ,
Your "where clause" is writting wrongly. You have written "ca_asset_sys_id.ppa_asset_sys_id", but it think it should have been "ca_asset_sys_id = pp_asset_sys_id". Please also remember of one of the tables should be a left join or not.
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 06:39 AM
Hi Anders, yeah sorry Siddhesh pointed out that typo too. unfortunately after updating I still have the same issue.
Thanks
Alex