vikas kumar Posted May 3, 2018 Share Posted May 3, 2018 Can any one tell me how to add(sum) two columns from two different tables but from same database. please send me exact query if you know.. Quote Link to comment Share on other sites More sharing options...
Administrators Nathan Posted May 3, 2018 Administrators Share Posted May 3, 2018 Sure for Microsoft SQL Server, assuming since that's how you tagged the topic, it should look something like this: select a.column1 + b.column2 from table1 a inner join table2 b on a.id = b.id Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.