<?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: How can I write this sql in qlikview. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475353#M1129636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming you are wanted to write this in an expression in the UI.&amp;nbsp; I also assumed your field names are in the table.field structure because you used the Qualify statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ROI_NBR_SESSIONS_2013.ITEM_ID &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'LR_R6R7'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; (ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00074*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00075*'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'0008*'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Left&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;(ROI_NBR_SESSIONS_2013.ACCOUNT_NO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 10pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;If your fields are loaded into QlikView just a fields names (this is the default) then drop the table names from above.&amp;nbsp; I.e. replace &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ROI_NBR_SESSIONS_2013.ACCOUNT_NO with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ACCOUNT_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 22:21:31 GMT</pubDate>
    <dc:creator>Josh_Good</dc:creator>
    <dc:date>2013-12-11T22:21:31Z</dc:date>
    <item>
      <title>How can I write this sql in qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475352#M1129635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ITEM_ID &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'LR_R6R7'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; (ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00074%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00075%'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'0008%'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;THEN&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: fuchsia; font-size: 10pt;"&gt;SUBSTR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;(ROI_NBR_SESSIONS_2013.ACCOUNT_NO,&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 10pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 10pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 20:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475352#M1129635</guid>
      <dc:creator />
      <dc:date>2013-12-11T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write this sql in qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475353#M1129636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming you are wanted to write this in an expression in the UI.&amp;nbsp; I also assumed your field names are in the table.field structure because you used the Qualify statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ROI_NBR_SESSIONS_2013.ITEM_ID &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'LR_R6R7'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; (ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00074*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'00075*'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ROI_NBR_SESSIONS_2013.ACCOUNT_NO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 10pt;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 10pt;"&gt;'0008*'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Left&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;(ROI_NBR_SESSIONS_2013.ACCOUNT_NO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 10pt; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;If your fields are loaded into QlikView just a fields names (this is the default) then drop the table names from above.&amp;nbsp; I.e. replace &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ROI_NBR_SESSIONS_2013.ACCOUNT_NO with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ACCOUNT_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 22:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475353#M1129636</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-12-11T22:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write this sql in qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475354#M1129637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the match function can help you with the or part of the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;A name="kanchor412"&gt;&lt;/A&gt;&lt;A name="wildmatch"&gt;&lt;/A&gt;wildmatch(&lt;SPAN style="font-style: italic;"&gt; str, expr1 [ , expr2,...exprN ] &lt;/SPAN&gt;) &lt;/H4&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;wildmatch&lt;/SPAN&gt; function performs a case insensitive comparison and permits the use of wildcard characters (&lt;SPAN class="Bold"&gt; *&lt;/SPAN&gt; and &lt;SPAN class="Bold"&gt;?&lt;/SPAN&gt;) in the comparison strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;wildmatch( M, 'ja*','fe?','mar')&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns &lt;SPAN style="font-style: italic;"&gt;1&lt;/SPAN&gt; if &lt;SPAN style="font-style: italic;"&gt;M&lt;/SPAN&gt; = &lt;SPAN style="font-style: italic;"&gt;January&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;returns &lt;SPAN style="font-style: italic;"&gt;2 &lt;/SPAN&gt;if &lt;SPAN style="font-style: italic;"&gt;M&lt;/SPAN&gt; = &lt;SPAN style="font-style: italic;"&gt;fex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( &lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;ROI_NBR_SESSIONS_2013.ITEM_ID &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: gray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: red;"&gt;'LR_R6R7'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt; wildmatch(ROI_NBR_SESSIONS_2013.ACCOUNT_NO, &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: red;"&gt;'00074*', &lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: 'Courier New'; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;'00075*', &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: red;"&gt;'0008*'&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Left&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;(ROI_NBR_SESSIONS_2013.ACCOUNT_NO&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: maroon;"&gt;11&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 22:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-this-sql-in-qlikview/m-p/475354#M1129637</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2013-12-11T22:57:11Z</dc:date>
    </item>
  </channel>
</rss>

