<?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 correct syntax for query using LIKE with predefined variable? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17626#M3687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trying to use like in a query referencing a predefined variable and cant get the syntax right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT v.name AS VolumeName&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM cm_storage.volume v, cm_storage.cluster c, cm_storage.vserver vs&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (c.id = vs.cluster_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (vs.id = v.vserver_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and v.name like '${LastVol}' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by v.name desc&lt;/P&gt;&lt;P&gt;limit 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know if this can be done, and if so, what the syntax is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:33:03 GMT</pubDate>
    <dc:creator>stephen2</dc:creator>
    <dc:date>2025-06-05T05:33:03Z</dc:date>
    <item>
      <title>correct syntax for query using LIKE with predefined variable?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17626#M3687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trying to use like in a query referencing a predefined variable and cant get the syntax right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT v.name AS VolumeName&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM cm_storage.volume v, cm_storage.cluster c, cm_storage.vserver vs&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (c.id = vs.cluster_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (vs.id = v.vserver_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and v.name like '${LastVol}' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by v.name desc&lt;/P&gt;&lt;P&gt;limit 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know if this can be done, and if so, what the syntax is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:33:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17626#M3687</guid>
      <dc:creator>stephen2</dc:creator>
      <dc:date>2025-06-05T05:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: correct syntax for query using LIKE with predefined variable?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17632#M3688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the correct syntax. It is working for me.&lt;/P&gt;&lt;P&gt;What kind of error is being thrown, if any?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 04:36:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17632#M3688</guid>
      <dc:creator>ag</dc:creator>
      <dc:date>2014-07-08T04:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: correct syntax for query using LIKE with predefined variable?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17636#M3689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Where are you using/testing this query? In WFA or using it outside WFA?&lt;/P&gt;&lt;P&gt;If you are using in WFA which version of WFA are you using?&lt;/P&gt;&lt;P&gt;As 'ag' replied, it is syntactically correct, WFA is not complaining.&lt;/P&gt;&lt;P&gt;If using WFA, are you trying to use it in a user input query or you are using in a filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:40:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17636#M3689</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2014-07-09T06:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: correct syntax for query using LIKE with predefined variable?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17640#M3690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, it must have been something stupid. I tried in another workflow and the syntax worked correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 11:56:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/correct-syntax-for-query-using-LIKE-with-predefined-variable/m-p/17640#M3690</guid>
      <dc:creator>stephen2</dc:creator>
      <dc:date>2014-07-09T11:56:35Z</dc:date>
    </item>
  </channel>
</rss>

