We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SUM function must reduce all column values to a single value by adding the values together.
SUM accepts a query as parameter, and all the fields specified in that query must be numeric.
SUM
Definition:
query = GET <[fields, ]> FROM <entity> <[entity_id, ]> ON <chain> SUM(<query>)
Examples:
# ACCOUNTS # ✅ Valid query SUM(GET balance FROM account vitalik.eth ON eth, base, arb) # ❌ Invalid query: cannot sum addresses SUM(GET balance, address FROM account vitalik.eth ON eth, base, arb) # TRANSACTIONS # ✅ Valid query SUM(GET value FROM tx WHERE block = latest ON eth, base, arb) # ❌ Invalid query: cannot sum hashes SUM(GET value, hash FROM tx WHERE block = latest ON eth, base, arb)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The SUM function must reduce all column values to a single value by adding the values together.
Syntax
SUM
accepts a query as parameter, and all the fields specified in that query must be numeric.Definition:
Examples:
The text was updated successfully, but these errors were encountered: