Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

i have 4 fields in database, in which one of those fields is 'amount'. I need to get the greatest amount like for ex, the amounts are: 50, 40, 70, 20. I need to get 70.

Thanks in advance
Posted

1 solution

Try this buddy,

SQL
SELECT MAX(amount) FROM [tablename]


Regards,
Eduard
 
Share this answer
 

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