I'm using Oracle SQL. I have 3 tables which including each one 80 columns with the same columns names. I want to join the tables into a new table, but i supposed to get an error due to a duplicated naming.
I don’t what to rename 240 columns. Is there any other solution?
Here is my tables:
T1
table
c1 int,
c2 int,
..
..
..
c80 int
T2
table
c1 int,
c2 int,
..
..
..
c80 int
T3
table
c1 int,
c2 int,
..
..
..
c80 int
And here is my join:
Create table NewTable as
select *
from T1
inner join T2
on T1.id = T2.id
inner join T3
on T1.id = T3.id
Is there any solution for such as problem? For example - presenting a full column name including table name (t1.c1, t1.c2...).