FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
PostgreSql(Aggregative Functions)
NewsSystems

PostgreSql(Aggregative Functions)

via Dev.tos mathavi3h ago

Aggregative Function: Aggregate functions perform calculations on multiple rows and return a single result. They’re essential for: Summarizing data (e.g., total salary, average marks) Analyzing trends (e.g., highest sales, number of employees per department) Filtering grouped results using HAVING #Common SQL Aggregate Functions: SELECT SUM ( salary ) FROM Employee ; SELECT COUNT ( * ) FROM Employee ; SELECT MAX ( salary ) FROM Employee ; SELECT MIN ( salary ) FROM Employee ; Using Aggregate Functions with GROUP BY: SELECT dept_id , AVG ( salary ) FROM Employee GROUP BY dept_id ; Filtering Groups with HAVING SELECT dept_id , COUNT ( * ) AS emp_count FROM Employee GROUP BY dept_id HAVING COUNT ( * ) > 5 ; Shows only departments with more than 5 employees. Bye.. bye..

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Unified Modules For Your Nixfiles
News

Unified Modules For Your Nixfiles

Lobsters • 50m ago

The Next-Gen Developer’s Manifesto
News

The Next-Gen Developer’s Manifesto

Medium Programming • 54m ago

The Secret to Winning in Life — Winners’ Matrix
News

The Secret to Winning in Life — Winners’ Matrix

Medium Programming • 57m ago

The Curious World of TikTok’s “Veggie Dramas”
News

The Curious World of TikTok’s “Veggie Dramas”

Medium Programming • 1h ago

Can Tinder Fix The Dating Landscape It Helped Ruin?
News

Can Tinder Fix The Dating Landscape It Helped Ruin?

Wired • 1h ago

Discover More Articles