In New to NetSuite | SuiteQL Overview and New to NetSuite | Understanding SuiteQL Syntax articles, we explored the fundamental concepts, capabilities, and structure of SuiteQL.
SuiteQL Syntax for Advanced Queries goes beyond simple selections and joins to deliver robust, flexible, and analytical queries within database. SuiteQL’s capabilities are similar to standard SQL (with some NetSuite-specific constraints). One of these advanced features is AVG.
The AVG function in SuiteQL calculates the average (mean) value for a column—useful for analyzing average deal sizes, transaction amounts, and customer or rep performance over time.
General Syntax
SELECT AVG(column) AS avg_value
FROM record