Hi all,
How to combine the two columns having different name from two different tables in SQL Server ?
Adding the Two Columns having Different Name from Two Different Tables in SQL Server
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


nallyaRank #8,588 · 219 reputationPosted Nov 25, 2012, 11:59 PM EST
http://stackoverflow.com/questions/2360396/how-can-i-merge-the-columns-from-two-tables-into-one-output
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Nov 26, 2012, 12:06 AM EST
Select column in second table and Union them.
Google SQL2005 Select Union
Rohatash KumarRank #12 · 57.7K reputationPosted Nov 26, 2012, 12:12 AM EST
But Column name are not same in both table.
Shankar MRank #874 · 2.5K reputationPosted Nov 26, 2012, 1:13 AM EST
No problem, if two column names are different and if you are trying to union them, The only issue is that both should of same datatype.
Thanks,
Shankar