Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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

Brad Bowman
Mega Patron

It seems to work like this, without trying to do any left joins

BradBowman_0-1724942168166.png

 

Hello @Brad Bowman  

 

I can see record count but no record is visible. Also when trying to filter user_name contains xxx. I got error message 'Error MessageSyntax Error or Access Rule Violation detected by database ((conn=2099688) Unknown column 'usr.user_name' in 'where clause')'

tsoct_0-1724943223121.png

 

Can you view list views of each of the three tables individually?  You won't be able to add a contains to the Where clause, but can do that and other refinements with a query Business Rule using the database view as the table once you can view the records.

Robbie
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