
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 11:36 AM
Good Afternoon All,
I am attempting to dive into Database Views and I have created a simple view based off of a video I watched (below)
After joining my incident table and my company table I added a WHERE clause to the incident table that attempts to pull records where the "company" field on my incident table matches the "name" field on the company table.
After I "Try It" I get nothing in return, any idea why? I do know that there are records on our Incident table that match these names.
My Reference Video...picks up around 9:55
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 12:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 11:48 AM
The Company field on Incident stores a sys_id, so you want to compare it to the sys_id field on the Company table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 11:59 AM
How would I do that? After your reply I tried
inc.sys_id = comp.sys_id and inc.company = comp.sys_id and got nothing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 12:00 PM
Hmm wait a sec...I applied Left join just for fun and it seemed to bring up results...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 12:12 PM
So despite it working with a left join it seems to not pull data from the company field now. The fields show but no data