Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
ppo pname token_no amount
123 ram 1 5000
345 sit 2 6000
456 rita 3 7000


i want to calculate a sum of amount i.e
total 18000
Posted

select sum(amount ) from tablename
 
Share this answer
 
Use this Query,
select SUM(amount) from yourTableName
 
Share this answer
 
Comments
tanugarg 5-May-14 5:06am    
this code not working ,i want to calculate a total on crystal report
SQL
select SUM(amount) from your TableName
 
Share this answer
 
v2
Comments
tanugarg 5-May-14 5:05am    
this code not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900