<?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 to delete rows based upon a condition in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-rows-based-upon-a-condition/m-p/76000#M36032</link>
    <description>&lt;P&gt;Try the &lt;EM&gt;Left() &lt;/EM&gt;or &lt;EM&gt;Starts With()&lt;/EM&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DATA3 &amp;lt;&amp;lt; select where(Is Missing(:NAME) &amp;amp; Starts With(:NO, "L9")) &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 21:56:28 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2018-09-26T21:56:28Z</dc:date>
    <item>
      <title>How to delete rows based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-rows-based-upon-a-condition/m-p/75973#M36029</link>
      <description>&lt;P&gt;I have a joined data table and i would like to select &amp;amp; delete rows if two condition are both simultaneously met.&lt;/P&gt;&lt;P&gt;Character Condition1= Missing a name in column ("NAME")&lt;/P&gt;&lt;P&gt;Character Condition2= Character value in column ("NO") is L9% &amp;amp; exists where there are various character values in the table (ie. L921000, L939456, L999999, etc.)&lt;/P&gt;&lt;P&gt;Is there a way to do this since i don't think i can use an sql wildcard% or do i need to change this column to a number (by removing the L &amp;amp; changing it from character to numeric) and then i can chose values &amp;gt;899,999.&lt;/P&gt;&lt;P&gt;The error is in the 2nd part of my select where statement dealing with condition 2 (L9 character values)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA3=Data Table( "DATA1" ) &amp;lt;&amp;lt; Join(&lt;BR /&gt;With( Data Table( "DATA2" ) ),&lt;BR /&gt;Merge Same Name Columns,&lt;BR /&gt;By Matching Columns( :NO = :NO ),&lt;BR /&gt;Drop multiples( 1, 1 ),&lt;BR /&gt;Include Nonmatches( 1, 1 ),&lt;BR /&gt;Preserve main table order( 1 ),&lt;BR /&gt;Output Table( "MERGE3" )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA3 &amp;lt;&amp;lt; select where((Is missing(:NAME))&amp;nbsp;&amp;amp; contains(as column(DATA3,"NO"),"L9")==2) &amp;lt;&amp;lt; delete rows &amp;lt;&amp;lt; clear select;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 20:53:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-rows-based-upon-a-condition/m-p/75973#M36029</guid>
      <dc:creator>tgp109</dc:creator>
      <dc:date>2018-09-26T20:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete rows based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-rows-based-upon-a-condition/m-p/76000#M36032</link>
      <description>&lt;P&gt;Try the &lt;EM&gt;Left() &lt;/EM&gt;or &lt;EM&gt;Starts With()&lt;/EM&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DATA3 &amp;lt;&amp;lt; select where(Is Missing(:NAME) &amp;amp; Starts With(:NO, "L9")) &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 21:56:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-rows-based-upon-a-condition/m-p/76000#M36032</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-09-26T21:56:28Z</dc:date>
    </item>
  </channel>
</rss>

