CreateQuery(table)
Returns the Query object that represents a query of table records. The table argument specifies the Table object that is a table upon which the query has been built. The table is a root table of created query. The created query is not added to the GeoDatabase::Queries collection (it is not cataloged). Using not cataloged queries is possible. To catalog a query, it is necessary to set its name up by the Query::Name property and add it to the GeoDatabase::Queries collection by the Append method. Cataloging queries based on temporary tables is not possible.