Database view

tsoct
Tera Guru

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.

 

tsoct_0-1724940784806.png

 

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @tsoct,

 

See the below tried and tested result on PDI.

 

Database view:

Screenshot 2024-08-29 at 16.10.26.png

 

Results when hitting 'Try it':

Screenshot 2024-08-29 at 16.10.36.png

 

Validation on record:

Screenshot 2024-08-29 at 16.11.10.png

 

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

View solution in original post

10 REPLIES 10

Hello @Robbie ,

 

Thanks. This is the error when i clicked on try it

tsoct_0-1724944816337.png

 

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

This did the trick! Thank you!

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

Bert_c1
Kilo Patron

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.