DEPT.
OF ELECTRONICS AND COMMUNICATION ENGINEERING
CMR TECHNICAL CAMPUS
UGC Autonomous Institute
Accredited by NBA and NAAC with A Grade
DATA BASE MANAGEMENT SYSTEM
AGGREGATIO
N
OPERATORS PRESENTED BY:
K.SRUTHI
227R1A0490
ECE-B
INTRODUCTION:
Aggregation operators
An aggregate operators in performs a calculation on
multiple values and returns a single summarizing value. SQL
provides many aggregate operators that include avg , count,
sum, min, max, etc. An aggregate function ignores NULL
values when it performs the calculation ,except for the count
function.
We often use aggregation functions with the GROUPBY and
HAVING clauses of the SELECT statement.
Various types of SQL aggregate
operators are:
Count()
Sum()
Avg ()
Min()
Max()
COUNT FUNCTION
The COUNT() function returns the number of rows in a database
table.
Syntax:
count(expression)
Example:
SUM FUNCTION
The SUM() function returns the total sum of a numeric column in a
database table.
Syntax:
sum(expression)
Example:
AVG FUNCTION
The AVG() function returns the average value of a numeric column
in a database table.
Syntax:
avg(expression)
Example:
MIN FUNCTION
The MIN() aggregate function returns the lowest value(minimum) in
a set of non NULL values.
Syntax:
min(expression)
Example:
MAX FUNCTION
The MAX() aggregate function returns the highest value(maximum)
in a set of non NULL values.
Syntax:
max(expression)
Example:
Advantages :
•Summarization: Aggregation functions provide a concise
summary of large datasets, making it easier to understand and
analyze the data.
•Simplicity: They simplify data analysis by condensing complex
information into a single value or a small set of values.
•Consistency: Aggregation functions provide consistent results,
regardless of the size or structure of the dataset.
•Ease of Use: They are straightforward to use, making them
accessible to both technical and non-technical users for data
analysis.
Disadvantages :
•Loss of Detail: Aggregation functions condense data, potentially leading to
loss of detail and important nuances present in the original dataset.
•Limited Analysis: Aggregation functions may not provide enough detail for
certain types of analysis, especially when exploring relationships within the
data.
•Inflexibility: Once data is aggregated, it may become challenging to extract
specific details or perform certain types of analysis.
•Over-Simplification: Aggregation functions can sometimes oversimplify
complex data relationships, leading to potentially misleading conclusions if
not used judiciously
Applications :
Business intelligent and data warehousing
Financial analysis
Statistical analysis
Data mining and machine learning
Web Analytics
Supply Chain Management
Social Media Analytics
CONCLUSION:
•Aggregation operators are essential for combining
and summarizing data from various sources .They
help us reach conclusions or making decisions by
providing a collective preference relation.