Given the following tables:
Table B Table C
ID PROP_A PROB_B ID PROP_A PROP_C
----------------------- -----------------------
1 V1 V1 1 V2 V2
2 V2 V2 2 V3 V3
3 V3 V3 3 V4 V4
I would like to unioun those tables to obtain the following result:
Table B+C
ID TABLE_NAME PROP_A PROP_B PROP_C
-----------------------------------------------------
1 B V1 V1 null
2 B V2 V2 null
3 B V3 V3 null
1 C V2 null V2
2 C V3 null V3
3 C V4 null V4
I'm looking for a solution that is agnostic to the database technology (standard SQL). However, in case of technology dependent SQL, I would to like known how to do it in Oracle.