<?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 Query Case Sensitivity Issue in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772835#M95342</link>
    <description>&lt;P&gt;The SQL statement is similar to this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SELECT t1.`Column1`, t1.`Column2`, t1.`Column3`
FROM test_data  t1 
WHERE  (  NOT  (  (  ( t1.`Column1` IN  ( 'A' )  )  )  )  ) ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I know that adding the &lt;CODE&gt;BINARY&lt;/CODE&gt; keyword in SQL can enforce case sensitivity, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SELECT `Column1`, `Column2`, `Column3`
FROM `test_data` AS `t1`
WHERE BINARY `Column1` NOT IN ('A');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And using the &lt;CODE&gt;open Database&lt;/CODE&gt; function, I can execute SQL statements directly. However, I am particularly interested in whether the &lt;CODE&gt;New SQL Query&lt;/CODE&gt; function in JSL can achieve the same case-sensitive effect.&lt;/P&gt;&lt;P&gt;Thank you for your assistance!&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jul 2024 09:02:39 GMT</pubDate>
    <dc:creator>Arthur</dc:creator>
    <dc:date>2024-07-13T09:02:39Z</dc:date>
    <item>
      <title>SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772663#M95320</link>
      <description>&lt;P&gt;I'm using JSL to retrieve data from a MySQL database. However, I've encountered an issue where the filtering conditions in my SQL query are case-insensitive by default. This means that the results returned are the same regardless of the case of the filter value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here are the two scripts that produce the same results:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Script 1:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;New SQL Query(&lt;BR /&gt;Version( 130 ),&lt;BR /&gt;Connection(&lt;BR /&gt;"ODBC:DATABASE=my_database;DSN=my_dsn;PORT=3306;PWD=my_password;SERVER=localhost;UID=my_user;"&lt;BR /&gt;),&lt;BR /&gt;QueryName( "test_data" ),&lt;BR /&gt;Select(&lt;BR /&gt;Column( "Column1", "t1" ),&lt;BR /&gt;Column( "Column2", "t1" ),&lt;BR /&gt;Column( "Column3", "t1" )&lt;BR /&gt;),&lt;BR /&gt;From( Table( "test_data", Alias( "t1" ) ) ),&lt;BR /&gt;Where(&lt;BR /&gt;Not Or(&lt;BR /&gt;In List(&lt;BR /&gt;Column( "Column1", "t1" ),&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;{"A"},&lt;/FONT&gt;&lt;BR /&gt;UI( SelectListFilter( ListBox, Base( "Categorical" ) ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) &amp;lt;&amp;lt; Run;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New SQL Query(&lt;BR /&gt;Version( 130 ),&lt;BR /&gt;Connection(&lt;BR /&gt;"ODBC:DATABASE=my_database;DSN=my_dsn;PORT=3306;PWD=my_password;SERVER=localhost;UID=my_user;"&lt;BR /&gt;),&lt;BR /&gt;QueryName( "test_data" ),&lt;BR /&gt;Select(&lt;BR /&gt;Column( "Column1", "t1" ),&lt;BR /&gt;Column( "Column2", "t1" ),&lt;BR /&gt;Column( "Column3", "t1" )&lt;BR /&gt;),&lt;BR /&gt;From( Table( "test_data", Alias( "t1" ) ) ),&lt;BR /&gt;Where(&lt;BR /&gt;Not Or(&lt;BR /&gt;In List(&lt;BR /&gt;Column( "Column1", "t1" ),&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;{"a"},&lt;/FONT&gt;&lt;BR /&gt;UI( SelectListFilter( ListBox, Base( "Categorical" ) ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) &amp;lt;&amp;lt; Run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I modify the &lt;CODE&gt;New SQL Query&lt;/CODE&gt; function in my JSL scripts to make the filtering conditions case-sensitive?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 10:12:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772663#M95320</guid>
      <dc:creator>Arthur</dc:creator>
      <dc:date>2024-07-12T10:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772675#M95322</link>
      <description>&lt;P&gt;Someone from JMP most likely knows better, but have you what the SQL query looks like? I think you can see it by converting to Custom SQL&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1720781188385.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66092i7E4DCD334DD34125/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1720781188385.png" alt="jthi_0-1720781188385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 10:51:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772675#M95322</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-12T10:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772678#M95323</link>
      <description>&lt;P&gt;Also how is your database configured? If you run your query in some other application do you get the same results? I'm not familiar with MySQL but maybe those are by default case insensitive &lt;A href="https://dev.mysql.com/doc/refman/8.4/en/case-sensitivity.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/8.4/en/case-sensitivity.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 11:13:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772678#M95323</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-12T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772835#M95342</link>
      <description>&lt;P&gt;The SQL statement is similar to this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SELECT t1.`Column1`, t1.`Column2`, t1.`Column3`
FROM test_data  t1 
WHERE  (  NOT  (  (  ( t1.`Column1` IN  ( 'A' )  )  )  )  ) ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I know that adding the &lt;CODE&gt;BINARY&lt;/CODE&gt; keyword in SQL can enforce case sensitivity, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SELECT `Column1`, `Column2`, `Column3`
FROM `test_data` AS `t1`
WHERE BINARY `Column1` NOT IN ('A');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And using the &lt;CODE&gt;open Database&lt;/CODE&gt; function, I can execute SQL statements directly. However, I am particularly interested in whether the &lt;CODE&gt;New SQL Query&lt;/CODE&gt; function in JSL can achieve the same case-sensitive effect.&lt;/P&gt;&lt;P&gt;Thank you for your assistance!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 09:02:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772835#M95342</guid>
      <dc:creator>Arthur</dc:creator>
      <dc:date>2024-07-13T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772922#M95360</link>
      <description>&lt;P&gt;I think you might have to add custom expression to handle situations like that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1720971883308.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66136i43FBA761CF520C25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1720971883308.png" alt="jthi_2-1720971883308.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1720971875440.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66135iE78A4C651786FCAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1720971875440.png" alt="jthi_1-1720971875440.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1720971854215.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66134iEB58F1F614F236F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1720971854215.png" alt="jthi_0-1720971854215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 15:45:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772922#M95360</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-14T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Case Sensitivity Issue</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772994#M95374</link>
      <description>&lt;P&gt;Got it, that would be similar to referencing SQL statements in &lt;CODE&gt;open Database&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;function. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 09:17:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-Case-Sensitivity-Issue/m-p/772994#M95374</guid>
      <dc:creator>Arthur</dc:creator>
      <dc:date>2024-07-15T09:17:47Z</dc:date>
    </item>
  </channel>
</rss>

