Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Future consideration
Workspace Db2 for z/OS
Created by Guest
Created on Jul 1, 2024

Allow join of base temporal table to archive enabled tables

Temporal and archive enabled tables both provide valuable features depending on the use case for the data. We've implemented both types of tables in our Production environment and had initially implemented temporal tables for one of our most critical VSAM files that have converted to DB2. Our other major DB2 table that we converted years ago to hold a log of financial transactions made more sense putting it in an archive-enabled table structure and has proved invaluable. We have a need to join these tables together but found out that we cannot join an archive enabled table to a "base" temporal table (not the temporal history table). Because of this, we had to back out from making that critical table temporal to allow us to do joins. Having temporal history allows us to see how a table record (in our case a member account) has changed over a period of time providing us invaluable data to identify who changed what. Here are a few use cases for allowing joins between these tables in a limited fashion.

Scenario 1: Join base temporal table to base table in archive-enabled relationship

Scenario 2: Join base temporal table to archive table in archive-enabled relationship

Scenario 3: Join base temporal table to base/archive table in archive enabled relationship

Example:

select col1, col2

from schema.base_temporal_table btemp inner join schema.base_table_transactions btrans

where ...

union all

select col1, col2

from schema.base_temporal_table btemp inner join schema.arch_table_transactions atrans

where ...

--The above would be one way to get data from both base/arch transaction tables without having to deal with the get_archive variable

These scenarios I believe would satisfy the vast majority of requests we would get for joining the data. What could possibly help to avoid involving the temporal history tables is that querying those tables you would use the FOR SYSTEM_TIME/BUSINESS_TIME AS OF clause. So if the underlying queries didn't have that clause, maybe that could help the parser narrow it down to a valid join scenario.

 

Needed By Not sure -- Just thought it was cool