Find practical knowledge without the noise.

Search guides, SQL, error codes, and procedures — or browse by topic below.

388 guides · 8 topics

Aggregation & Grouping

Guides filed under this topic.

Showing 9 technical documents Folder: Aggregation & Grouping
Filtering…
GROUP BY and HAVING

GROUP BY and HAVING in MySQL

GROUP BYSELECT department, COUNT(*) FROM employees GROUP BY department;HAVINGSELECT department, COUNT(*) AS total FROM...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views
Aggregation & Grouping

Aggregation & Grouping

Aggregation & Grouping in Oracle SQLAggregation is used to compute summary values like totals, averages, and counts. Gro...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views
GROUP BY and HAVING

GROUP BY and HAVING

GROUP BY and HAVINGGROUP BYSELECT department_id, AVG(salary) AS avg_salary FROM employees GROUP BY department_id;HAVINGS...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views
Aggregate Functions

Aggregate Functions

Aggregate Functions in Oracle SQLCOUNT() – counts rowsSUM() – totals a numeric columnAVG() – average valueMIN() – minimu...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views
ROLLUP and CUBE

ROLLUP and CUBE

ROLLUP and CUBEROLLUPROLLUP adds subtotals and grand totals in a hierarchy.SELECT department_id, job_id, SUM(salary) FRO...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views
GROUPING Functions

GROUPING Functions

GROUPING and GROUPING_ID FunctionsThese functions help identify which columns are part of subtotal rows in ROLLUP and CU...

Sai Sree Ram Gundepudi Updated Jul 26, 2025 0 views