<?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: Sql help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998535#M953505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SQL is ill-formed&lt;/P&gt;&lt;P&gt;Where clauses must be separated by logical operators (AND, OR, etc)&lt;/P&gt;&lt;P&gt;I´m guessing that you want is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ph.create_dt&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.hdr_num&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_calendar_cd&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days2&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days_type_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_event1_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_event2_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,case when ph.pay_dt_days_type_ind = "B" then "Business Days" end&lt;/P&gt;&lt;P&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;/P&gt;&lt;P&gt;where create_dt &amp;gt; '2015/10/10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2015 12:51:59 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2015-11-27T12:51:59Z</dc:date>
    <item>
      <title>Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998534#M953504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following sql load statement and I am receiving an error.&amp;nbsp; I'm sure it's something simple and would really appreciate any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement works if I comment out from 'case' to 'end'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ph.create_dt,ph.hdr_num,ph.pay_dt_calendar_cd,ph.pay_dt_days1,ph.pay_dt_days2,ph.pay_dt_days_type_ind,ph.pay_dt_event1_ind,ph.pay_dt_event2_ind &lt;BR /&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;BR /&gt;where create_dt &amp;gt; '2015/10/10'&lt;BR /&gt;case &lt;BR /&gt; when ph.pay_dt_days_type_ind = "B" &lt;BR /&gt; then "Business Days"&lt;BR /&gt; end &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 12:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998534#M953504</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-27T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998535#M953505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SQL is ill-formed&lt;/P&gt;&lt;P&gt;Where clauses must be separated by logical operators (AND, OR, etc)&lt;/P&gt;&lt;P&gt;I´m guessing that you want is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ph.create_dt&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.hdr_num&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_calendar_cd&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days2&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_days_type_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_event1_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,ph.pay_dt_event2_ind&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,case when ph.pay_dt_days_type_ind = "B" then "Business Days" end&lt;/P&gt;&lt;P&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;/P&gt;&lt;P&gt;where create_dt &amp;gt; '2015/10/10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 12:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998535#M953505</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-11-27T12:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998536#M953506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ph.create_dt,ph.hdr_num,ph.pay_dt_calendar_cd,ph.pay_dt_days1,ph.pay_dt_days2,ph.pay_dt_days_type_ind,ph.pay_dt_event1_ind,ph.pay_dt_event2_ind&lt;BR /&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;BR /&gt;where &lt;STRONG&gt;ph.&lt;/STRONG&gt;create_dt &amp;gt; '2015/10/10'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;//missing table alias with field&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this will help!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 12:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998536#M953506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T12:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998537#M953507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever Anjos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the above SQL and I received the below message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'SQL##f - SqlState: S0002, ErrorCode: 4294967153, ErrorMsg: [Sybase][ODBC Driver][Sybase IQ]Column 'B' not found'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what the issue might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998537#M953507</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-27T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998538#M953508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with single quotes&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;select ph.create_dt&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.hdr_num&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_calendar_cd&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_days1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_days2&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_days_type_ind&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_event1_ind&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,ph.pay_dt_event2_ind&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;&amp;nbsp; ,case when ph.pay_dt_days_type_ind = 'B' then 'Business Days' end&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f2f2f2;"&gt;where create_dt &amp;gt; '2015/10/10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998538#M953508</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-11-27T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998539#M953509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put table alias name with field in where condition, try what I have suggested you earlier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998539#M953509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998540#M953510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clever Anjos - that code produces a new field.&amp;nbsp; What I am trying to do is for the field ph.pay_dt_days_type_ind when the result is B then it should return Business Days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balraj - unfortunately I do not understand what I need to do for your suggestion.&amp;nbsp; Are you able to explain further, or perhaps add the last part of my code to your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998540#M953510</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-27T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998541#M953511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace your code with folowing code,simple&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;ph.create_dt,ph.hdr_num,ph.pay_dt_calendar_cd,ph.pay_dt_days1,ph.pay_dt_days2,ph.pay_dt_days_type_ind,ph.pay_dt_event1_ind,ph.pay_dt_event2_ind&lt;BR /&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;BR /&gt;&lt;STRONG&gt;where ph.create_dt &amp;gt; '2015/10/10'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///see the difference in my where condition and your code&lt;/STRONG&gt;&lt;BR /&gt;case &lt;BR /&gt;when ph.pay_dt_days_type_ind = "B" &lt;BR /&gt;then "Business Days"&lt;BR /&gt;end&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998541#M953511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998542#M953512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;it should return Business Days." return how? A new field? or oly return records that are equal to "Business Days"?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998542#M953512</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-11-27T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998543#M953513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could it be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ph.create_dt,ph.hdr_num,ph.pay_dt_calendar_cd,ph.pay_dt_days1,ph.pay_dt_days2,ph.pay_dt_days_type_ind,ph.pay_dt_event1_ind,ph.pay_dt_event2_ind&lt;BR /&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;BR /&gt;where create_dt &amp;gt; '2015/10/10'&lt;BR /&gt;And ph.pay_dt_days_type_ind = 'B'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998543#M953513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998544#M953514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever Anjos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment ph.pay_dt_days_type_ind returns B or C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like it to return Business Days (instead of B) and Calendar Days (instead of C).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the above makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balraj - unfortunately that code returns an error as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998544#M953514</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-27T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998545#M953515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;select ph.create_dt&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.hdr_num&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.pay_dt_calendar_cd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.pay_dt_days1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.pay_dt_days2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;case when ph.pay_dt_days_type_ind = "B" then "Business Days" end as &lt;/SPAN&gt;ph.pay_dt_days_type_ind&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.pay_dt_event1_ind&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; ,ph.pay_dt_event2_ind&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;from tempest_tier1.v_BO_PHYSICAL_HDR ph&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where create_dt &amp;gt; '2015/10/10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998545#M953515</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-11-27T13:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sql help</title>
      <link>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998546#M953516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and add this between &lt;SPAN style="font-family: 'courier new', courier;"&gt;case&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;end&lt;/SPAN&gt; (for example before the first 'when')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when ph.pay_dt_days_type_ind = 'C' then 'Calendar Days'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;As Clever already indicated, use single quotes to specify string values in SQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 14:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sql-help/m-p/998546#M953516</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-27T14:38:41Z</dc:date>
    </item>
  </channel>
</rss>

