I have 2 tables as follows :
-
1st table name
bkq: at this table I had 6 columns named (etab-guib-nom-swift-data-dev) -
2nd table name
bkdoscdeat this table I had more than 15 columns but what I need to use are (ETAF-GUIF-ETAE-GUIE-ETAR-GUIR-ETAB-GUIB) all those columns are union with data in the first table column :-
named
ETABsimilar data in columns ETAF and ETAE and ETAR and ETAB at the 2nd table. -
named
guibsimilar data in columns GUIF and GUIE and GUIR and GUIB at the 2nd table
What I need the union data between the 2 tables that shown between table number 1 columns I said to be similar and table number 2 .
-
In another way column named (etab) at table 1 having data that used at columns of table 2 i said begin with (Eta–) and also column named (guib) have the data for column at table 2 begin with (gui–) i need to extract the data from table 1 that is being shown any columns I referred at the 1 st paragraph .
I need also at same query to show column (nom) and (swift) from table 1 and they are not in the table 2
If I understand you correctly, out of the 6 columns in your first table [bkq] only two will be involved into the UNION OPERATION viz
etab,guibsince they corresponds to the columns of the second table [bkdoscde]If this understanding of mine is correct, then here you go
Edited
— added nom and swift column in the union
Hope this helps