Hi ,
I have a table with two columns CompanyID,Earnings.
Table ::
CompanyID Earnings
1 10
1 20
2 15
I want sum of sum of earnings according to company i.e
CompanyID Earnings
1 30
2 15
I have tried using Distinct and GROUP BY, but I didn,t got the answer.
Reply me asap.
with regards,
Kishore