<?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>topic Re: Left,Right,Index in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383508#M143138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael - that pointed me in the right direction to correct my mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 13:52:59 GMT</pubDate>
    <dc:creator>timsaddler</dc:creator>
    <dc:date>2012-09-05T13:52:59Z</dc:date>
    <item>
      <title>Left,Right,Index</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383506#M143136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Need to extract data from a field being pulled from a sql server 2005 db - whatever i try doesn't work!&lt;/P&gt;&lt;P&gt;Any suggestions gratefully received. Script below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;SELECT &lt;BR /&gt;T1.ID,&lt;BR /&gt;T1.Mon_ID,&lt;BR /&gt;T3.Title,&lt;BR /&gt;T1.Reading_Date,&lt;BR /&gt;T1.Site_ID,&lt;BR /&gt;T2.Name,&lt;BR /&gt;&lt;SPAN style="color: #333333; text-decoration: underline;"&gt;&lt;EM&gt;Left(T2,Name,3),&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;T1.Value&lt;BR /&gt;&lt;BR /&gt;FROM "Envoy_Live".dbo.Mon_Reading T1&lt;BR /&gt;&lt;BR /&gt;inner join "Envoy_Live".dbo.Site T2&lt;BR /&gt;on T1.Site_ID = T2.ID&lt;BR /&gt;&lt;BR /&gt;inner join "Envoy_Live".dbo.Mon T3&lt;BR /&gt;on T1.Mon_ID = T3.ID&lt;BR /&gt;&lt;BR /&gt;where Year(T1.Reading_Date) = 2012&lt;BR /&gt;and T3.ID in (948, 947, 946, 945, 944, 943, 951, 950, 949) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 14:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383506#M143136</guid>
      <dc:creator>timsaddler</dc:creator>
      <dc:date>2012-09-03T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Left,Right,Index</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383507#M143137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use QV functions in SQL - it doesn't understand...&amp;nbsp; Use preceeding load, where you can use QV functions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Left(Name,3) as ...,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;SQL&lt;BR /&gt;SELECT &lt;BR /&gt;T1.ID,&lt;BR /&gt;T1.Mon_ID,&lt;BR /&gt;T3.Title,&lt;BR /&gt;T1.Reading_Date,&lt;BR /&gt;T1.Site_ID,&lt;BR /&gt;T2.Name,&lt;BR /&gt;T1.Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 15:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383507#M143137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-03T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Left,Right,Index</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383508#M143138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael - that pointed me in the right direction to correct my mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Right-Index/m-p/383508#M143138</guid>
      <dc:creator>timsaddler</dc:creator>
      <dc:date>2012-09-05T13:52:59Z</dc:date>
    </item>
  </channel>
</rss>

