- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 07:13 AM
How can I join the database views for the three tables shown below? I'm getting an error 'Syntax Error or Access Rule Violation detected by database ((conn=2096030) Unknown column 'jou.sys_created_by' in 'where clause')' when trying to join.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:13 AM
Hi @tsoct,
See the below tried and tested result on PDI.
Database view:
Results when hitting 'Try it':
Validation on record:
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:48 AM
Hi @tsoct,
This is strange. You've copied the database view exactly right...
Can you entertain me (in case of any weird caching etc), can you change the 'Variable' prefix on the 3rd line from 'usr' to 'user' and update the 'where' condition the same please: user_user_name=jou_sys_created_by
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:57 AM
This did the trick! Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 09:06 AM
Hi @tsoct - No worries at all.
Happy Thursday ; )
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:35 AM - edited 08-29-2024 03:47 PM
try the following for the where clause 'usr_sys_id=jou_sys_created_by' on the 3rd line.
edit: i see that is wrong due to the type of sys_created_by as was pointed out.