i need a query to count column values from multiple tables and sum up...
i got username column in three tables.. i need to count the values and sum...
Sql query to count column values from multiple tables and su
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted May 25, 2014, 7:55 PM EDT
I cannot get your question.
Can you provide more information with good end to end example.
Abhay ShankerRank #375 · 6.7K reputationPosted May 25, 2014, 8:17 PM EDT
Yadlapalli SrikanthRank #7,940 · 231 reputationPosted May 25, 2014, 8:43 PM EDT
Inner JOIN table2
ON table1.UserId=table2.UserId
GROUP BY UserId;
If this post helps you mark it as answer Thanks
Anupam SinghRank #643 · 3.7K reputationPosted May 25, 2014, 10:08 PM EDT
You can use sql join operator for this. I have used just inner join you can use as per you need.
with group by you can simply use any Aggregate function(e.g SUM,MIN,MAX..) in sql .
try
hop will help.