- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 05:15 AM
I am trying to create a database view joining sc_request table with xyz_user table. Note that the xyz_user table extends sys_user table. The u_user column in the sc_request table is a Reference field that references the xyz_user table.
In the database view, the sc_request is prefixed with req and xyz_user is prefixed with usr.
The join is as follows:
- req.u_user = xyz.sys_id
Also tried
- req_u_user = xyz_sys_id
In terms of query order I've placed the sc_request table first and placed the join in xyz_user which is called second. I also tried calling xyz_user first and placing the join in the sc_request where clause which is called second.
Any insight will be greatly appreciated. I've been able to join other tables with success but not these 2 tables.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:21 AM
I believe I found the issue. It may have been related to the fact that I didn't have the columns that I was querying off of listed. Sometimes, you can be prompted with this error but in this case I wasn't but added the columns and started to see results instead of an empty result set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 06:10 AM
Is this a typo, or did you try with the second table prefix
req_u_user = usr_sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 08:24 AM
Thanks Brad for pointing that out. It was a typo on my part. I was using either the usr. or usr_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 07:14 AM
Hi @Renee-17 ,
can you please share the screen shot of that page.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 08:23 AM