About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Nov 26, 2024
You can combine tables from multiple data sources into a single virtual table, which creates a unified definition that contains the columns and data from all participating data sources. These tables are referred to as grouped tables.
Segmentation is vertical (either a subset or superset of columns based on a selection of chosen columns). You can run queries against the resulting virtual table the same way that you would query any of the base tables.
Tables can be grouped into a single virtualized table if the tables' names as resolved by the driver are the same (an exact match, case-sensitive). The table grouping semantics considers columns with the same name (case-insensitive) to match. The data type promotion follows precedence rules.
You must ensure that the grouping of tables is logical, especially concerning the handling of data types of the result grouped table. In some cases, corresponding columns might have different data types. Rules are used to determine the result data types of the grouped table. For more information, see Rules for result data types.
To prevent unexpected results, you must be careful when you group tables into a single virtualized table. The following recommendations can be considered when you create a grouped table, although nothing is restricted.
- Ensure that the columns with the same name from all the tables have compatible data types and compatible business usage. The domain of data in all tables must be compatible.
- Group tables from the same type of data source to ensure consistent data semantics.
- When you group tables from different types of data sources, ensure consistent data semantics.
- Ensure that all tables in the group have most columns with the same names. Ensure that matching columns have compatible data types.
- Do not include columns that are defined on complex types.
Note: Some data sources, such as
Hive, use lowercase default for tables names.
These tables cannot be grouped with tables from other data sources that have uppercase as the
default unless delimited identifiers are used to ensure an exact match on table names.
About this task
These steps describe how to virtualize data without business terms. If you want to govern your virtual data, see Governing virtual data in Data Virtualization.
Procedure
What to do next
- You can collect statistics for your virtual object. For more information, see Collecting statistics in Data Virtualization.
-
On the Virtualized data page, you can publish your virtual object to the catalog. For more information, see Publishing virtual data to the catalog in Data Virtualization.
- You can also create join multiple virtual tables to create a joined view. See Creating a join view from multiple tables.
Was the topic helpful?
0/1000