Hi I have an Sql Table Like this
My Table
StudentID paidId Amount
1140 25 100
1140 25 200
1140 25 300
1141 30 500
I Want A table in Following format
i want To show Amount in This format
How I can Get a result Like
StudentID paidId Amount
1140 25 600
1141 30 500
Sql Query Problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Ankit NandekarRank #703 · 3.4K reputationPosted Apr 14, 2011, 10:04 PM EDT
SELECT StudentID,paidId,SUM (Amount) FROM dbo.FeesPaidInformation
GROUP BY StudentID,paidId