<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Database view and Dot walking in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912595#M569521</link>
    <description>&lt;P&gt;Hi Mathias,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If not all incidents have the location set, then set the "Left join" flag when you define the "cmn_location" within the Database View.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Telmo&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Nov 2016 09:48:38 GMT</pubDate>
    <dc:creator>telmo</dc:creator>
    <dc:date>2016-11-18T09:48:38Z</dc:date>
    <item>
      <title>Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912589#M569515</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a view between 2 tables - cmdb_ ci_computer and sc_task where the condition should be requested_for &amp;nbsp; (sc_task/Req) = cmdb_ci computer_u_user (custom field which refers to user form)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be the database view criteria ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a view with view tables sc_task and cmdb_ci_computer&lt;/P&gt;&lt;P&gt;ci prefix for CI computer table&lt;/P&gt;&lt;P&gt;stsk prefix for sc_task table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where clause on cmdb_ci_computer is &amp;nbsp; &amp;nbsp; " &amp;nbsp; ci_u_user = &amp;nbsp; &amp;nbsp; stsk_request_item.request.requested_for" but it looks like dot walking does not work ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 00:26:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912589#M569515</guid>
      <dc:creator>JJ1</dc:creator>
      <dc:date>2016-04-05T00:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912590#M569516</link>
      <description>&lt;P&gt;Hi Jeevan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The "where clause" you see in database views in ServiceNow is actually a "ON" clause from a JOIN:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://www.w3schools.com/sql/sql_join.asp" title="http://www.w3schools.com/sql/sql_join.asp"&gt;SQL Joins&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We don't support dot walking on ON clause. There is no real SQL WHERE clause in these database views.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2016 07:28:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912590#M569516</guid>
      <dc:creator>sergiu_panaite</dc:creator>
      <dc:date>2016-04-05T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912591#M569517</link>
      <description>&lt;P&gt;Hi Sergiu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for the clarification ,so there is no way to achieve the above requirement ?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Jeevan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:43:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912591#M569517</guid>
      <dc:creator>JJ1</dc:creator>
      <dc:date>2016-04-05T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912592#M569518</link>
      <description>&lt;P&gt;Hi Jeevan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It might work but you need to add 2 more tables in the join/ database view, one for table of request and another one for table of requested_for and use something like:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Where clause&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;ci_u_user = &amp;nbsp; &amp;nbsp; stsk_request_item&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;stsk_request_item = xxx_&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;request&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;xxx_&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;request = yyy_&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;requested_for&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;You'll need to test it this.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:48:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912592#M569518</guid>
      <dc:creator>sergiu_panaite</dc:creator>
      <dc:date>2016-04-05T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912593#M569519</link>
      <description>&lt;P&gt;Thanks Sergiu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I will try this option.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:58:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912593#M569519</guid>
      <dc:creator>JJ1</dc:creator>
      <dc:date>2016-04-05T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912594#M569520</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I tried this but it seems to require all tables to contain data related to each other.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;E.g, I have created a database view to display Problem data and incident data based on Incident related to problem. I also want to display the Country where these incidents were registered.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The database view looks like&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;View tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;problem&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where: prb_sys_id=inc_problem_id&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;incident&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where: inc_problem_id=prb_sys_id&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;cmn_location&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where: (null)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This only displays one record, since there is only one record where the location on the incident is set and contains country data.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If i remove the cmn_location, the list will display 29 records..&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I want to display all the 29 records WITH the country if applicable.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Am I doing wrong?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:42:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912594#M569520</guid>
      <dc:creator>mathiasjohansso</dc:creator>
      <dc:date>2016-11-18T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912595#M569521</link>
      <description>&lt;P&gt;Hi Mathias,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If not all incidents have the location set, then set the "Left join" flag when you define the "cmn_location" within the Database View.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Telmo&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:48:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912595#M569521</guid>
      <dc:creator>telmo</dc:creator>
      <dc:date>2016-11-18T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912596#M569522</link>
      <description>&lt;P&gt;This worked great! Thank you!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Nov 2016 10:01:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912596#M569522</guid>
      <dc:creator>mathiasjohansso</dc:creator>
      <dc:date>2016-11-18T10:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database view and Dot walking</title>
      <link>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912597#M569523</link>
      <description>&lt;P&gt;above solution worked. thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 19:59:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/database-view-and-dot-walking/m-p/1912597#M569523</guid>
      <dc:creator>vidyasnpractice</dc:creator>
      <dc:date>2020-10-01T19:59:40Z</dc:date>
    </item>
  </channel>
</rss>

