- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2018 03:51 AM
Hi,
What is the order field on Database views? what it does? how it works?
Thanks,
swathi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2018 04:42 AM
Aha, I understand what you mean. The Order is used when JOINing the tables for the view; joined tables are evaluated from left to right. See the documentation topic Add a table to the database view for more information.
Kind regards,
Lucas Vieites
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2018 07:47 PM
Thanks Lucas, i got the point.
I have one more doubt, Is it possible to put dot walking in where clause on tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2018 10:59 PM
Hi,
you can not use dot wlking in where clause in view table.
please refer below link.
https://community.servicenow.com/community?id=community_question&sys_id=f7c0d3a9dbdcdbc01dcaf3231f961945
Mark this answer as correct if helps
Regrds,
Manjusha Bangle

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 05:25 AM
Hello!
I know this is an old thread, but still. I keep reading that the order field has something to do with performance.
(Also mentioned here by @Daniel Draes : DATABASE VIEWS* for beginners. - ServiceNow Community)
However, in a pure SQL Statement, the order in which you add tables to the FROM Statement has no impact on performance. However, I found that sometimes, the Query generated is just wrong when the Order is "wrong".
So my feeling is that the Query Generator is not robust enough and needs some help in the form of the Order to construct the query.
Honestly, I think the Database View feature could use some more documentation and more examples, especially when it comes to order and the Where Clauses.
Just my 2 cents.
If this answer was helpful, I would appreciate if you marked it as such - thanks!
Best
Daniel