Data Types in Distributed Queries

Queries whose only data sources are tables and views in the local database to which the session is connected can return values from columns or expressions of any built-in or user-defined data type that is registered in the local database. Queries that reference tables or views in other databases are called distributed queries, and the data types that they can access are a subset of the data types that HCL OneDB™ supports in local queries.

Among distributed queries, the restrictions on data types depend on the number of participating database servers.
  • If all the databases that the query accesses are databases of the same HCL OneDB instance, the query is called a cross-database distributed query.
  • If the query accesses databases of multiple HCL OneDB instances, the query is called a cross-server distributed query.
In both types of distributed queries, all participating databases must have the same ANSI/ISO-compliance status. A cross-server distributed query can use both the SKIP and FIRST options if all participating servers support the SKIP option; otherwise the query fails with an error. More generally, all cross-server operations require that the participating database server instances support the SQL syntax that specifies the operation.

For additional information about distributed queries, see the HCL OneDB Database Design and Implementation Guide.