I have multiple column with same name from multiple table,
table_1
has column X
, table_2
has column x
and more.
How to select query for X
column from all table without union. If use union, i must write every table name on query statement, i don't do this. I want do like :
Select X from (All table with containing X) where X value (not X name) = 'ABC'
.
I use Microsoft SQL. Is it possible ? thanks