如何获取查询中指定字段中包含的值集合的总和 [英] how to get the sum of set of values contained in a specified field on a query

查看:168
本文介绍了如何获取查询中指定字段中包含的值集合的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示银行完成的所有交易金额总和。如何使用聚合函数获得总和? 

I want to display the sum of amount of all transaction done in the bank. how to get that sum using aggregate function? 

推荐答案


我想显示银行完成的所有交易金额的总和。如何使用汇总函数获得该金额? 

I want to display the sum of amount of all transaction done in the bank. how to get that sum using aggregate function? 

您好Aimable baixista,

Hi Aimable baixista,

单程:   " SELECT SUM(Amount)AS Sum_amount FROM Transactions_tbl [WHERE ...]"

One way:   "SELECT SUM(Amount) AS Sum_amount FROM Transactions_tbl [WHERE ...]"

您可以填写自己的特定名称,并在必要时添加WHERE子句。

You can fill in your own specific names, and if necessary add a WHERE clause.

Imb。


这篇关于如何获取查询中指定字段中包含的值集合的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆