I am fetching data from three different tables and column names are different in all three tables and there is no relationship between these three tables.
/*Report1*/
Select a1,a2,a3 from temp1
/*Report2*/
Select b1,b2,b3,b4,b5 from temp2
/*Report3*/
Select c1,c2 from temp3
At the end of query I have to display all three tables results in single output using sql query.
For ex:
Please advise how to achieve above requirement using sql query.
Thanks in advance.
Microsoft SQL ServerMicrosoft SQL Server 2008SQL
Last Comment
sqldba2013
8/22/2022 - Mon
Paul Jackson
If there is no logical relationship between the 3 tables then its not possible, how else are you going to determine which row data from temp1 is joined with which row data from temp2 and temp3
sqldba2013
ASKER
Hi Paul Jackson,
I don't want to add any condition/join, Just I want to merge all three tables results and need to display results in single output using normal select statement.