Using Aggregate Functions in MySQL
ExampleSELECT department_id, AVG(salary) FROM employees GROUP BY department_id;
Search guides, SQL, error codes, and procedures — or browse by topic below.
388 guides · 8 topics
API to Update FND_LOOKUP DECLARE l_lookup_type VARCHAR2 (250); l_lookup_code VARCHAR2 (250);...
Oracle SQL Performance & TuningOracle provides features and tools to analyze and tune query performance.Execution PlansI...
Basic SELECTSELECT name, salary FROM employees;All ColumnsSELECT * FROM employees;
SELECT DISTINCT A.APPLICATION_ID , A.application_short_name , b.application_name , c.RESPO...
DECLARE l_responsibility_id NUMBER; l_application_id NUMBER; l_user_id NUMBER; l_request_id...
Lists the Data Access Sets (GL access sets) the current user has access to — used as the LOV source for a "Data Ac...
Updated Aug 28, 2026
security-parametersLists the Business Units the current BI Publisher user has data access to, based on their user role data assignments &md...
Updated Aug 18, 2026
security-parametersLists the Business Units the current user has procurement agent access to, via their PO agent assignment — used as...
Updated Aug 22, 2026
security-parametersLists the Ledgers the current user has direct data access to — used as the LOV source for a "Ledger" report parame...
Updated Aug 28, 2026
security-parametersLists the Fixed Asset Books the current user has data access to — used as the LOV source for a Fixed Assets report...
Updated Aug 22, 2026
security-parametersLists the Intercompany Organizations the current user has data access to — used as the LOV source for an intercomp...
Updated Aug 22, 2026
Guides filed under this topic.
ExampleSELECT department_id, AVG(salary) FROM employees GROUP BY department_id;
GROUP BY SyntaxSELECT department_id, COUNT(*) FROM employees GROUP BY department_id;This groups employees by department...
ExampleSELECT department_id, COUNT(*) AS emp_count FROM employees GROUP BY department_id HAVING COUNT(*) > 5;
GROUP BYSELECT department, COUNT(*) FROM employees GROUP BY department;HAVINGSELECT department, COUNT(*) AS total FROM...
Aggregation & Grouping in Oracle SQLAggregation is used to compute summary values like totals, averages, and counts. Gro...
GROUP BY and HAVINGGROUP BYSELECT department_id, AVG(salary) AS avg_salary FROM employees GROUP BY department_id;HAVINGS...
Aggregate Functions in Oracle SQLCOUNT() – counts rowsSUM() – totals a numeric columnAVG() – average valueMIN() – minimu...
ROLLUP and CUBEROLLUPROLLUP adds subtotals and grand totals in a hierarchy.SELECT department_id, job_id, SUM(salary) FRO...
GROUPING and GROUPING_ID FunctionsThese functions help identify which columns are part of subtotal rows in ROLLUP and CU...