<?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 Wildcard in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727887#M67562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sounds like a basic SQL question. If you want to search for a specific event type, add that to your where clause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;query.where = 'someField = "someValue" AND eventType = "Conference"'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, just leave the eventType out of your where clause. If there's nothing to filter your data, use query.where = '1=1'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 18:28:16 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-07-21T18:28:16Z</dc:date>
    <item>
      <title>SQL Query Wildcard</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727884#M67559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing an SQL query that is used in an HTML drop menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is trying to run a query that selects all values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is query i've tried running :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;eventTypeSQL = "Type = ''*" ;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This isn't working. Is there a way to select all in a database using a wildcard, or is there another method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Pat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727884#M67559</guid>
      <dc:creator>deleted-user-K_IRAXrpGKsG</dc:creator>
      <dc:date>2011-07-21T16:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Wildcard</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727885#M67560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Depends on the underlying datastore. The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/query.htm#where"&gt;where property of a query&lt;/A&gt;&lt;SPAN&gt; gets passed through to the database. To get all values, you could use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;query.where = '1=1';&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will return all values until you hit the max results for your map service (at 9.3, it's 500 records, at 10, it's 1000 records).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to use the 1=1 approach, watch out for string formatting...be sure you have all your single and double quotes in the right place.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727885#M67560</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-21T17:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Wildcard</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727886#M67561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for replying, I'm not sure if the 1=1 option will work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have three event types: Conference, Lecture, Workshop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a drop menu that allows the user to choose one of those three, but I would also like the user to be able to search for all three at the same time essentially looking at every possible record in the database on the map at once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I would like the user to choose "All Events" from the menu and populate the map with Conferences, Lectures and workshops. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I do that with the SQL code? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously&amp;nbsp; eventTypeSQL = "Type = '*' " doesn't work. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727886#M67561</guid>
      <dc:creator>deleted-user-K_IRAXrpGKsG</dc:creator>
      <dc:date>2011-07-21T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Wildcard</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727887#M67562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sounds like a basic SQL question. If you want to search for a specific event type, add that to your where clause:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;query.where = 'someField = "someValue" AND eventType = "Conference"'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, just leave the eventType out of your where clause. If there's nothing to filter your data, use query.where = '1=1'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 18:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sql-query-wildcard/m-p/727887#M67562</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-21T18:28:16Z</dc:date>
    </item>
  </channel>
</rss>

