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,
Post an idea
Upvote ideas that matter most to you
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
See this idea on ideas.ibm.com
Sometimes we use DGTT to hold complex result sets with many columns.
We must DECLARE the DGTT first… and then second, INSERT into the DGTT
The DECLARE requires us to think about each column name and type if we list them explicitly.
OR. We can DECLARE the DGTT “as (fullselect) with no data” where the “fullselct” is a copy of the SQL SELECT that will be later used with the INSERT into the DGTT.
The advantage of using the “as (fullselect) with no data” is that we don't need to think too much about the column names and types and sizes. They all come from the provided SELECT.
BUT it is subjectively “ugly” to have same “select” repeated twice in the SQL script. First, in the DGTT and second in the INSERT into DGTT.
Why can't DB2 allow us to dynamically DECLARE the DGTT and INSERT into this DGTT in one SQL statement. It seems logical!
And the DB2 syntax for DECLARE GLOBAL TEMPORARY TABLE suggests this might be possible because it obliges us to add ‘with no data' when using FULLSELECT to declare the table.
> The existing documentation is very clear that when ‘when no data' is used that the SELECT is not executed.
How about syntax option alternative/opposite to ‘with no data' to allow us to insert immediately? (you can pick the syntax)
It seems like IBM was thinking about this already! Why else have ‘with no data' unless IBM was thinking of the ‘opposite' functionality for the future!!
ORACLE and SQLSERVER implement “declared temporary tables” differently than DB2… but the concepts exist. And in those database technologies, it is possible to declare the temporary table and insert into it in the same time! Just one SQL statement!
Basically, I would like to do the same with DB2!
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
Dear Brian, The Db2 for z/OS SME that has reviewed this idea indicated the idea is in Not under consideration because while we know it is a good idea and desired by different customers, it is not in plan for the next 12-month timeframe.
Since there are several votes, we'll bring it out for high-level discussion when epics in plan for the next 12-month are finished.
Sincerely,
The Db2 for z/OS Team
IBM really should provide feedback about why it is not being done. Is the effort for IBM so much that it is not worthwhile? Really? Because it is a very worthwhile idea.
does IBM have any feedback on this idea?
It seems logical and like something that IBM has been thinking about for a long time (as per the syntax diagram).
I would really like to see it done....