<?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 Select data that does NOT fall within a query range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861087#M301363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a script which selected ONLY those data which meet a certain criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the criteria were mainly a "clean-up" process --- meaning :&amp;nbsp; removing all fields with empty rows, garbage data, etc, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Thanks to those of you who helped me greatly with my previous post.&amp;nbsp; Truly appreciate it&lt;/STRONG&gt;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have successfully "&lt;STRONG&gt;cleaned&lt;/STRONG&gt;" my data, and stored it in a sheet, I need to retrieve the "&lt;STRONG&gt;unclean&lt;/STRONG&gt;" data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning, those data that were NOT clean&amp;nbsp; (the data which I excluded from my LOAD script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal SQL, this would be as easy as saying : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Select * from xxxxx where data_id NOT IN.........(select "clean data"....)"&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; , etc, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I tried it in the QlikView script, I kept getting syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As a newcomer to QlikView, I've already learned that SQL query functions are not exactly the same as they are in QlikView.&amp;nbsp; Certain operators/funtions need to be changed/altered in certain ways).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trouble is :&amp;nbsp; using Google to find those "certain ways" is not giving me any answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my LOAD script&amp;nbsp; (the one I used to "clean" and "purge" garbage-data and empty spaces :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CUSTOMERS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streetAddress,&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; phone,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; postalCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(lastName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~1234567890') as lastName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(firstName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~1234567890') as firstName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(streetAddress, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;;:§_|[]{}%¨+^~') as streetAddress_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(phone, '\''~!-´@#$€%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~') as phone_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(postalCode, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') as postalCode_Clean&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where len(trim(purgechar(streetAddress, chr(160)))) &amp;gt; 5 and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalCode, chr(160)))) = 5 and postalCode &amp;lt;&amp;gt; '00000' and NOT IsNull(postalCode) and postalCode &amp;gt; '' and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalOffice, chr(160)))) &amp;gt; 2 and&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(email, chr(160)))) &amp;gt; 5 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(firstName, chr(160)))) &amp;gt; 1 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(lastName, chr(160)))) &amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CoreBOA.dbo.Customer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to get those data which I&amp;nbsp; "threw into the garbage-bin".............the data which falls &lt;STRONG&gt;OUTSIDE&lt;/STRONG&gt; the range of this script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 05:00:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-10T05:00:17Z</dc:date>
    <item>
      <title>Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861087#M301363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a script which selected ONLY those data which meet a certain criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the criteria were mainly a "clean-up" process --- meaning :&amp;nbsp; removing all fields with empty rows, garbage data, etc, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Thanks to those of you who helped me greatly with my previous post.&amp;nbsp; Truly appreciate it&lt;/STRONG&gt;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have successfully "&lt;STRONG&gt;cleaned&lt;/STRONG&gt;" my data, and stored it in a sheet, I need to retrieve the "&lt;STRONG&gt;unclean&lt;/STRONG&gt;" data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning, those data that were NOT clean&amp;nbsp; (the data which I excluded from my LOAD script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal SQL, this would be as easy as saying : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Select * from xxxxx where data_id NOT IN.........(select "clean data"....)"&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; , etc, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I tried it in the QlikView script, I kept getting syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As a newcomer to QlikView, I've already learned that SQL query functions are not exactly the same as they are in QlikView.&amp;nbsp; Certain operators/funtions need to be changed/altered in certain ways).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trouble is :&amp;nbsp; using Google to find those "certain ways" is not giving me any answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my LOAD script&amp;nbsp; (the one I used to "clean" and "purge" garbage-data and empty spaces :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CUSTOMERS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streetAddress,&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; phone,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; postalCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(lastName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~1234567890') as lastName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(firstName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~1234567890') as firstName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(streetAddress, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;;:§_|[]{}%¨+^~') as streetAddress_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(phone, '\''~!-´@#$€%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~') as phone_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(postalCode, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') as postalCode_Clean&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where len(trim(purgechar(streetAddress, chr(160)))) &amp;gt; 5 and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalCode, chr(160)))) = 5 and postalCode &amp;lt;&amp;gt; '00000' and NOT IsNull(postalCode) and postalCode &amp;gt; '' and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalOffice, chr(160)))) &amp;gt; 2 and&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(email, chr(160)))) &amp;gt; 5 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(firstName, chr(160)))) &amp;gt; 1 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(lastName, chr(160)))) &amp;gt; 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CoreBOA.dbo.Customer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to get those data which I&amp;nbsp; "threw into the garbage-bin".............the data which falls &lt;STRONG&gt;OUTSIDE&lt;/STRONG&gt; the range of this script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 05:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861087#M301363</guid>
      <dc:creator />
      <dc:date>2015-06-10T05:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861088#M301364</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;Do you have any primary Key field which gives unique row if yes then&lt;/P&gt;&lt;P&gt;You can use not Exist()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like,&lt;/P&gt;&lt;P&gt;CleanRecordScript:&lt;/P&gt;&lt;P&gt;Load PRimaryKey as CleanPrimaryKeyField,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from tableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;UncleanRecords:&lt;/P&gt;&lt;P&gt;Load PrimaryKeyField as UncleanPrimaryKeyField&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from tableName where not exists(CleanPrimaryKeyField,PrimaryKeyField);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 05:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861088#M301364</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T05:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861089#M301365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max_dreamer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I might need some clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I do have a primary key;&amp;nbsp; it is "&lt;STRONG&gt;customerID&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, should I add your code to my already-existing script (above) ?&amp;nbsp; Please, could you use my script as a template?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the "CleanRecordScript" confuses me a bit&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 05:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861089#M301365</guid>
      <dc:creator />
      <dc:date>2015-06-10T05:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861090#M301366</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;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CoreBOA.dbo.Customer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CleanCustomerRecords:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;STRONG&gt;customerID as &lt;STRONG&gt;CleanCustomerID&lt;/STRONG&gt;,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastName as CRLastName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; firstName as CRfirstName,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streetAddress as CRstreetAddress,&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; phone as CRPhone,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; postalCode as CRPostalCode,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(lastName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~1234567890') as lastName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(firstName, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~1234567890') as firstName_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(streetAddress, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;;:§_|[]{}%¨+^~') as streetAddress_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(phone, '\''~!-´@#$€%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:_§|+[]{}%¨^~') as phone_Clean,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgechar(postalCode, '\''~!-´@#$%^&amp;amp;*()\?/&amp;lt;&amp;gt;,.;:§_|[]{}%¨+^~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') as postalCode_Clean&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where len(trim(purgechar(streetAddress, chr(160)))) &amp;gt; 5 and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalCode, chr(160)))) = 5 and postalCode &amp;lt;&amp;gt; '00000' and NOT IsNull(postalCode) and postalCode &amp;gt; '' and &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(postalOffice, chr(160)))) &amp;gt; 2 and&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(email, chr(160)))) &amp;gt; 5 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(firstName, chr(160)))) &amp;gt; 1 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(trim(purgechar(lastName, chr(160)))) &amp;gt; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Customers;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NotCleanRecords:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Customers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where not exists(&lt;STRONG&gt;CleanCustomerID,CustomerID&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop table Customers;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 05:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861090#M301366</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T05:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861091#M301367</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;thanks for the helpful reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting an error somewhere;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "debug" function says :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Garbage after statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CleanCustomerRecords:&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 06:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861091#M301367</guid>
      <dc:creator />
      <dc:date>2015-06-10T06:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select data that does NOT fall within a query range</title>
      <link>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861092#M301368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still having trouble with this&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 05:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-data-that-does-NOT-fall-within-a-query-range/m-p/861092#M301368</guid>
      <dc:creator />
      <dc:date>2015-06-11T05:20:10Z</dc:date>
    </item>
  </channel>
</rss>

