oracle几种求合计的方法.pdfVIP

  • 4
  • 0
  • 约2.34千字
  • 约 4页
  • 2024-10-29 发布于安徽
  • 举报

oracle几种求合计的方法

EnglishAnswer:

OracleprovidesseveralmethodstocalculateSUM()

aggregatefunctions,including:

1.SUM(expression):Calculatesthesumofanumeric

expressionwithinagroupofrows.

2.SUM(DISTINCTexpression):Calculatesthesumof

distinctvaluesofanumericexpressionwithinagroupof

rows.

3.SUM()OVER(PARTITIONBYclause):Calculatesthesum

ofanumericexpressionoverapartitiondefinedbythe

PARTITIONBYclause.

4.SUM()OVER(ORDERBYclause):Calculatestherunning

totalofanumericexpressionoveragroup

文档评论(0)

1亿VIP精品文档

相关文档