<?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 record in SQL it is possible making use of mapping ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/record-in-SQL-it-is-possible-making-use-of-mapping/m-p/770687#M666015</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;&lt;/P&gt;&lt;P&gt;Below is my SQL script with is working fine for record &lt;SPAN style="font-size: 13.6000003814697px;"&gt;kode_reject :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=andonDatabas;Data Source=Paul;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=PAUL;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;day(date_time)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [day],&lt;/P&gt;&lt;P&gt;year(date_time)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Year],&lt;/P&gt;&lt;P&gt;Date(Monthstart([date_time]), 'YY MMM') as YearMonth,&lt;/P&gt;&lt;P&gt;Pick(Match(kode_reject, 5, 39), 'reject human error', 'reject machine error') AS DESC_REJECT;&lt;/P&gt;&lt;P&gt;SQL select * from record_reject_detail_plc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my actual application , i hv more then 100 error code , it is possible to create table like below :-&lt;/P&gt;&lt;P&gt;SegmentTypeMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Original, New&lt;/P&gt;&lt;P&gt;5,reject human error&lt;/P&gt;&lt;P&gt;39,&lt;SPAN style="font-size: 13.6000003814697px;"&gt;reject machine error&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Instead of long list of script :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pick(Match(kode_reject, 5, 39), 'reject human error', 'reject machine error') AS DESC_REJECT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope some one can advise how to achieve this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 14:06:03 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2014-11-18T14:06:03Z</dc:date>
    <item>
      <title>record in SQL it is possible making use of mapping ?</title>
      <link>https://community.qlik.com/t5/QlikView/record-in-SQL-it-is-possible-making-use-of-mapping/m-p/770687#M666015</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;&lt;/P&gt;&lt;P&gt;Below is my SQL script with is working fine for record &lt;SPAN style="font-size: 13.6000003814697px;"&gt;kode_reject :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=SA;Initial Catalog=andonDatabas;Data Source=Paul;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=PAUL;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;day(date_time)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [day],&lt;/P&gt;&lt;P&gt;year(date_time)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Year],&lt;/P&gt;&lt;P&gt;Date(Monthstart([date_time]), 'YY MMM') as YearMonth,&lt;/P&gt;&lt;P&gt;Pick(Match(kode_reject, 5, 39), 'reject human error', 'reject machine error') AS DESC_REJECT;&lt;/P&gt;&lt;P&gt;SQL select * from record_reject_detail_plc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my actual application , i hv more then 100 error code , it is possible to create table like below :-&lt;/P&gt;&lt;P&gt;SegmentTypeMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Original, New&lt;/P&gt;&lt;P&gt;5,reject human error&lt;/P&gt;&lt;P&gt;39,&lt;SPAN style="font-size: 13.6000003814697px;"&gt;reject machine error&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Instead of long list of script :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pick(Match(kode_reject, 5, 39), 'reject human error', 'reject machine error') AS DESC_REJECT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope some one can advise how to achieve this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 14:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/record-in-SQL-it-is-possible-making-use-of-mapping/m-p/770687#M666015</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-11-18T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: record in SQL it is possible making use of mapping ?</title>
      <link>https://community.qlik.com/t5/QlikView/record-in-SQL-it-is-possible-making-use-of-mapping/m-p/770688#M666021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's better to use mapping load instead of Pick() and Match()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 14:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/record-in-SQL-it-is-possible-making-use-of-mapping/m-p/770688#M666021</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-18T14:15:12Z</dc:date>
    </item>
  </channel>
</rss>

