• Thanks Andy for your reply.
    I will try to simply my question: Below are 5 different tables which user access. Now aim is to have a single view with all combined data from different tables so that user doesnt have to query so many different tables. Mapping is not an issue.
    NOte: I have limited the num of rows to only 3.  Also number of columns can be more.

    1     SCHEMANAME:SchemaX, TABLENAME:TAB_G
    UIDCOL1COl2TEXT
    1127some textAComments1
    2453some textBComments2
    3234some textCComments3
    2     SCHEMANAME:SchemaY, TABLENAME:TAB_G
    UIDCOL1COl2TEXT
    10111some textXComments44
    10222some textYComments5
    10357some textZComments62
    3    SCHEMANAME:SchemaZ, TABLENAME:TAB_G
    UIDCOL1COl2TEXT
    2148some text4Comments17
    2223some text5Comments80
    2310some text6Comments9
    4    SCHEMANAME:SchemaM, TABLENAME:TAB_MXM
    COLIDCOLXCOLYCOLZCOLNCOLMTEXTCOL
    1301txtP9XUNdatetime1001some textCommentsX
    1302txtQPS8Jdate1010txtCommentsY
    1303txtRLKS7som date3367textComments22
    5   SCHEMANAME:SchemaM, TABLENAME:TAB_SBR
    MODIDCOLACOLBCOLCCOLHCOLPCOLVCOLSCOMMENTS
    91121text33dateval11001some textY0CommentsA
    92465text12dateval21010txtN1Comments0
    93837text64dateval33367textN1CommentsM
    Expected View to have following structure
    TYPEIDDETAILSMESSAGE
    SchemaX-TAB_G1COL1=127; COL2=some textAComments1
    SchemaX-TAB_G2COL1=453; COL2=some textBComments2
    SchemaX-TAB_G3COL1=234; COl2=some textCComments3
    SchemaY-TAB_G101COl1=11; COl2=some textXComments44
    SchemaY-TAB_G102COL1=22; COL2=some textYComments5
    SchemaY-TAB_G103COL1=57; COL2=some textZComments62
    SchemaZ-TAB_G21COL1=48; COL2=some text4Comments17
    SchemaZ-TAB_G22COL1=23; COL2=some text5Comments80
    SchemaZ-TAB_G23COL1=10; COL2=some text6Comments9
    SchemaM-TAB_MXM1301COLY=9XUN; COLN=1001CommentsX
    SchemaM-TAB_MXM1302COLY=PS8J; COLN=1010CommentsY
    SchemaM-TAB_MXM1303COLY=LKS7; COLN=3367Comments22
    SchemaM-TAB_SBR91COLA=121; COLV=YCommentsA
    SchemaM-TAB_SBR92COLA=465; COLV=NComments0
    SchemaM-TAB_SBR93COLA=837; COLV=NCommentsM

    If there would have been only 5 tables , then I would have used 4 UNION ALL to combine them with all necessary mapping done easily.

    The only issue is Table TAB_G can be in 3 or more different schemas and hence question how many UNION_ALL to use for them and how to use it?
    Table 4 and 5 are fixed and wont change. All their mappings can be easily taken care.

    -Thanks