i have two tables: [ignore the dash(---)]
tablexx
valuexx--c1--c2---c3 .... (Column names)
AA-------1-----0----1
BB-------1-----1----1
CC-------------------1
DD ------------1
EE -----1------1
FF------1------------1
.
.
tableyy
valueyy---c1---c2---c3 .... (Column names)
AAA-------------1----1
BBB-------------------
CCC-------1
DDD-------------------
EEE-------------1-----1
FFF--------1----------1
.
.
.
now i need a query to give output in this way, using these two tables
valuexx heading1 valueyy
AA---------c1---------CCC
BB---------c1---------FFF
EE---------c1-------------
FF---------c1
BB-------- c2---------AAA
DD---------c2--------EEE
EE---------c2
.
.
.
tablexx
valuexx--c1--c2---c3 .... (Column names)
AA-------1-----0----1
BB-------1-----1----1
CC-------------------1
DD ------------1
EE -----1------1
FF------1------------1
.
.
tableyy
valueyy---c1---c2---c3 .... (Column names)
AAA-------------1----1
BBB-------------------
CCC-------1
DDD-------------------
EEE-------------1-----1
FFF--------1----------1
.
.
.
now i need a query to give output in this way, using these two tables
valuexx heading1 valueyy
AA---------c1---------CCC
BB---------c1---------FFF
EE---------c1-------------
FF---------c1
BB-------- c2---------AAA
DD---------c2--------EEE
EE---------c2
.
.
.
Last edited: