获取单元格的最大值 [英] get max value of cell
本文介绍了获取单元格的最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在数据库中有4个字段,其中一个字段是金额".我需要获得最大的金额,例如ex,金额分别是:50、40、70、20.我需要获得70.
在此先感谢
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
推荐答案
尝试这个伙伴,
Try this buddy,
SELECT MAX(amount) FROM [tablename]
问候,
爱德华
Regards,
Eduard
这篇关于获取单元格的最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文