Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. 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
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


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.

Status Not under consideration
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Dec 16, 2019

SQL Request crossed between partition

On IBMi, you are not able to perform, throught SQL, a request to cross datas from differents systems.
Always get a SQLCODE 42712:
Message : [SQL0212] Indicatif de table en double A incorrect. Cause . . . . . : L'une des erreurs suivantes s'est produite : - Plusieurs tables d'une clause FROM d'une sous-requête ont pour indicatif le nom A.  Si un nom de corrélation est indiqué, il s'agit de l'indicatif de table.  Si aucun n'est indiqué, le nom de table ou de vue est l'indicatif de table.  Si la convention d'appellation SQL est indiquée, le nom de table se compose du nom de schéma implicite ou explicite suivi du nom de la table proprement dit.  Si la convention d'appellation système est indiquée, c'est le nom de table qui est utilisé sans qualifiant comme indicatif de table.  L'indicatif de table doit être unique à chaque niveau d'une sous-requête. - Les noms indiqués dans la clause REFERENCING d'une instruction CREATE TRIGGER ne sont pas uniques.  Les noms de corrélation NEW et OLD et les noms NEW_TABLE et OLD_TABLE doivent être uniques et différents du nom de la table associée au déclencheur. Que faire . . . : Assurez-vous qu'il n'existe qu'un seul indicatif de table pour chaque table d'une clause FROM pour le même niveau de sous-requête.  Le nom de schéma/nom de table ne pouvant être utilisé pour qualifier une colonne, le nom de table doit être unique, ou bien un nom de corrélation doit être indiqué. Indiquez des noms uniques dans la clause REFERENCING de l'instruction CREATE TRIGGER. Corrigez les erreurs éventuelles et renouvelez votre demande.


Use Case:

If I want to check if users are defined on a second system compared to a reference one, i would like to be able to perform this resquest:

select A.AUTHORIZATION_NAME from SYSTEMA.qsys2.user_infos A, SYSTEMB.qsys2.user_infos B
where A.AUTHORIZATION_NAME not in (select B.AUTHORIZATION_NAME from SYSTEMB.qsys2.user_infos);


Idea priority Medium
  • Guest
    Reply
    |
    Apr 30, 2020

    IBM does not intend to provide a solution to this request at this time, so it is being closed.

    The database team has a long list of higher priority requirements, so this request is not likely to be implemented anytime soon.

  • Guest
    Reply
    |
    Jan 2, 2020

    Hello,
    With Db2 for i, you can pull data from a target RDB via INSERT with subselect, CREATE TABLE AS, and DECLARE GLOBAL TEMPORARY TABLE AS.
    To accomplish your requirement to compare user profiles against a target IBM i would require two steps if you use the technique above.

    It is also possible for you to create your own UDTFs where you aggregate data from external sources and return them to the caller.
    In this sense, you can achieve a result in a single query, if the UDTF pulls the data from the remote databases.

    Db2 Connect includes the support to allow multiple databases to be referenced in a single query.

    Since there are viable alternatives that can be used, this request is unlikely to be implemented in the near term.
    Regards, Scott

  • Guest
    Reply
    |
    Dec 30, 2019

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Db2 for i
    Operating system - IBM i
    Source - None

    For recording keeping, the previous attributes were:
    Brand - Servers and Systems Software
    Product family - Power Systems
    Product - IBM i
    Component - Languages - Other
    Operating system - IBM i
    Source - None

  • Guest
    Reply
    |
    Dec 17, 2019

    Great RFE,

    However, I think there is already an RFE regarding the use of three-part-names for joins and other SQL in general. This RFE is in the same category as three-part-names in UDTF and stored procedures.

    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=120817