<?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 Help to use IN keyword in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159104#M17992</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;can anyone please tell me, is there any keyword in archicad which is equivalent to sql's "IN" keyword????&lt;BR /&gt;
&lt;BR /&gt;
i hav query like&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.variable_name='Element ID' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8'  or xx.parameters.name='Family' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
and i want to use "IN" keyword near id in the above query, to include this one &lt;BR /&gt;
&lt;B&gt;select lb.object_id from objects as ob,labels as lb where ob.id=lb.object_id&lt;/B&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 17 Jul 2009 02:31:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-17T02:31:08Z</dc:date>
    <item>
      <title>Help to use IN keyword</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159104#M17992</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;can anyone please tell me, is there any keyword in archicad which is equivalent to sql's "IN" keyword????&lt;BR /&gt;
&lt;BR /&gt;
i hav query like&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.variable_name='Element ID' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8'  or xx.parameters.name='Family' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
and i want to use "IN" keyword near id in the above query, to include this one &lt;BR /&gt;
&lt;B&gt;select lb.object_id from objects as ob,labels as lb where ob.id=lb.object_id&lt;/B&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Jul 2009 02:31:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159104#M17992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-17T02:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: sql equivalent "IN" keyword to retrieve archic</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159105#M17993</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
What you want to use is not clear - as you do not use "IN" in your example.&lt;BR /&gt;
&lt;BR /&gt;
State the query exactly as you wish for it to be so that we know what it is that you want.&lt;BR /&gt;
&lt;BR /&gt;
From the GS SQL Language Reference, the IN operator is allowed:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IN
Determines if a given value matches any value in a subquery or a list. If the value of &amp;lt;test expression&amp;gt;
is equal to any &amp;lt;expression&amp;gt; from the comma-separated list, the result value is TRUE. Otherwise, the
result value is FALSE. Using NOT IN negates the returned value.
Syntax
&amp;lt;test expression&amp;gt; [ NOT ] IN ( &amp;lt;expression&amp;gt; ... )
Arguments
test expression
Any valid Graphisoft SQL numeric expression.
expression...
A list of expressions to test for a match. All expressions must be of the same type as &amp;lt;test
expression&amp;gt;.
Result Types
BOOL
&lt;/PRE&gt;

If you are on Windows and use the ODBC driver, then you can use MS Access and 'normal' SQL, including nested queries, inner joins or whatever, to get exactly what you need.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 17 Jul 2009 02:45:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159105#M17993</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-07-17T02:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: sql equivalent "IN" keyword to retrieve archic</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159106#M17994</link>
      <description>I hav query like this&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.variable_name='Element ID' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' or xx.parameters.name='Family' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
and i want it to be like this, but this below query doesnt work, dont know y..&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.variable_name='Element ID' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' or xx.parameters.name='Family' and (id IN select lb.object_id from objects as ob,labels as lb where ob.id=lb.object_id) &lt;/B&gt;</description>
      <pubDate>Fri, 17 Jul 2009 02:59:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159106#M17994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-17T02:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: sql equivalent "IN" keyword to retrieve archic</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159107#M17995</link>
      <description>&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.name='Family' and (id IN (select lb.object_id from objects as ob,labels as lb where ob.id=lb.object_id) )&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
when i execute the above query, it gives me the following error.....&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Failed to parse SQL statement 'select xx.parameters.type,xx.parameters.value,xx.parameters.name from Flat(objects,parameters) as xx where xx.parameters.name='Family' and (id IN (select lb.object_id from objects as ob,labels as lb where ob.id=lb.object_id) )&lt;BR /&gt;
' due to the following error(s):&lt;BR /&gt;
	Error: unexpected token: IN at [line: 1, column: 144]&lt;BR /&gt;
	Error: expecting RPAREN, found 'FROM' at [line: 1, column: 168]&lt;BR /&gt;
	Error: unexpected token: AS at [line: 1, column: 181]&lt;BR /&gt;
&lt;/B&gt;</description>
      <pubDate>Fri, 17 Jul 2009 03:08:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159107#M17995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-17T03:08:18Z</dc:date>
    </item>
    <item>
      <title>Help to use SQL IN keyword</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159108#M17996</link>
      <description>This is my query,&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name,id from Flat(objects,parameters) as xx where xx.parameters.variable_name IN ('eas_ID','eas_F','eas_D','eas_M','eas_U') and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
When i execute the above query it shows me error.....&lt;BR /&gt;
&lt;BR /&gt;
Is this is the correct way to use IN keyword ?&lt;BR /&gt;
&lt;BR /&gt;
When i execute as below it works well, so guess its the problem with IN keyword...&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;select xx.parameters.type,xx.parameters.value,xx.parameters.name,id from Flat(objects,parameters) as xx where xx.parameters.variable_name ='eas_ID' and id='59E19E78-BE54-4D09-8CCC-91A35009DAE8' &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can any1 please figure out the problem?</description>
      <pubDate>Fri, 17 Jul 2009 04:36:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159108#M17996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-17T04:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help to use IN keyword</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159109#M17997</link>
      <description>The first use of IN is perhaps not allowed by the interpreter - as the 'in' expression is itself a query.  The more recent use - a set of strings - should have worked I think.  This very simple test worked for me:&lt;BR /&gt;

&lt;PRE&gt;select userid,height from walls where userid in ('Wall Ext-003','Wall Ext-004')&lt;/PRE&gt;

I'm afraid you may have to use trial and error, working from simple to complex.  As mentioned, you may very well need to use an external database to access things via ODBC so that you can nest your queries and get exactly what you want.&lt;BR /&gt;
&lt;BR /&gt;
Karl&lt;BR /&gt;
&lt;BR /&gt;
PS Please do not start a new thread as you did that is basically identical to the first.  I've merged the two.</description>
      <pubDate>Fri, 17 Jul 2009 16:05:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159109#M17997</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-07-17T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help to use IN keyword</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159110#M17998</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
i started a new thread, since i messed up the earlier one with so many sql query statements. Hereafter i wont post different threads tat r identical .&lt;BR /&gt;
&lt;BR /&gt;
similar to ur query, i also did a simple query using IN keyword, it is working for me too.. I cudnt figure out, y its not working for this query. And im doing trial n error, to get it work, yet no use. &lt;BR /&gt;
&lt;BR /&gt;
you cud understand from my query, i was able to get the value if it is just one variable name, but not for more than one of it using IN keyword.....&lt;BR /&gt;
&lt;BR /&gt;
actually, in my query im trying to get Parameter table's values which are inside object table. i cudnt see the [Parameter's variable name field] in the archicad help file, but i can see it in objects table, U plz try this query to understand wat im telling {select parameters from objects}. &lt;BR /&gt;
In my query, in trying to use IN keyword for this parameters variable name, is it becoz i cudnt get my query work?&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
vidhya</description>
      <pubDate>Mon, 20 Jul 2009 02:25:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Help-to-use-IN-keyword/m-p/159110#M17998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-20T02:25:22Z</dc:date>
    </item>
  </channel>
</rss>

