i have below select statement which i am trying to run in MYSQL. There are many rows in the output, approx 80. what i want to achive is , that all the four result come on one screen, in single execution and form 4 columns.
select `name` newname1 from table select `name` newname2 from table2 select `name` newname3 from table3 select `name` newname4 from table4
I tried a lot looking in stack overflow, but i dint find relevant. it work for me if i limit the sub query to 1
SELECT (select name newname1 from table1 limit 1 ) as table1 , (select name from newname2 from table 2 limit 1) as table2
Data look like below
table 1 ======== NAME ======== text sms mobile tv phone table 2 ======== NAME ======== something test road board table 3 ======== NAME ======== landline fixedline elife
should be like
NAME NAME NAME ====== ======= ====== Text something landine sms test fixedline mobile road elife tv board phone