際際滷

際際滷Share a Scribd company logo
AGGREGATE FUNCTION
SQL AGGREGATE FUNCTION
 SQL aggregation function is used to perform the calculation
on multiple rows of a single column of a table. It returns a
single value.
 It is also used to summarize the data.
 This function ignore the null values except the count
function .
aggregatefunction-220420051702.pptx aggregate
TYPES OF SQL AGGREGATION FUNCTION
Count ( ) : Returns the numbers of rows
Sum ( ) : Returns the sum
Avg ( ) : Returns the average value
Max ( ) : Returns the smallest value
Min ( ) : Returns the largest value
COUNT FUNCTION
Count function is used to count the number of rows in database table
.It can work on both numeric and non-numeric data types.
Count function uses the count (*) that returns the count of all the
rows in a specific table. Count (*) considers duplicate and null .
This function does not count the null value .
Table name :Employee
EXAMPLE :TABLE
NAME DATE PAGES
RAMU 22022-01-12 34
GEETHA 22022-01-12 74
SEETHA 22022-01-12 64
RAM 22022-01-12 94
SUKRIA 22022-01-12 64
SYNTAX OF COUNT
Syntax: select count(Pages) from employee;
Count (pages)
5
1 row in set
Syntax: select count (name) from employee;
Count(name)
5
1 row in set
SUM FUNCTION
 Sum() function is an aggregate function that calculates the sum of
all or distinct values in an expression .
SYNTAX: SELECT SUM (PAGES) FROM EMPLOYEE;
SUM(PAGES)
330
1 ROW IN A SET
AVERAGE FUNCTION
 The avg function is used to calculate the average value of the
numeric type. Average function returns the average of all non-null
values.
syntax: select avg (pages)from employee;
avg(pages)
66.0000
1row in set
MAX FUNCTION
 Max function is used to find the maximum value of certain column.
This function determines the largest value of all selected values of
columns.
Syntax: select max (pages) from employee;
Max(pages)
94
1 row in set
MIN FUNCTION
 The Min function is used to find the minimum value of certain
column. This function determines the smallest value of all selected
values of a column.
syntax: Select min(pages)from employee ;
Min(pages)
34
1 row in set

More Related Content

Similar to aggregatefunction-220420051702.pptx aggregate (20)

Introduction to oracle functions
Introduction to oracle functionsIntroduction to oracle functions
Introduction to oracle functions
Nitesh Singh
5.Agg. Function.pdf
5.Agg. Function.pdf5.Agg. Function.pdf
5.Agg. Function.pdf
ssuser8b6c85
MySQL-commands.pdf
MySQL-commands.pdfMySQL-commands.pdf
MySQL-commands.pdf
ssuserc5aa74
2. mathematical functions in excel
2. mathematical functions in excel2. mathematical functions in excel
2. mathematical functions in excel
Dr. Prashant Vats
Oracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic FunctionsOracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic Functions
Zohar Elkayam
count^J Product^J functions.pptx
count^J Product^J functions.pptxcount^J Product^J functions.pptx
count^J Product^J functions.pptx
MdAquibRazi1
Oracle: Functions
Oracle: FunctionsOracle: Functions
Oracle: Functions
oracle content
Oracle: Functions
Oracle: FunctionsOracle: Functions
Oracle: Functions
DataminingTools Inc
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
Sql wksht-3
Sql wksht-3Sql wksht-3
Sql wksht-3
Mukesh Tekwani
ADV Powepoint 3 Lec.pptx
ADV Powepoint 3 Lec.pptxADV Powepoint 3 Lec.pptx
ADV Powepoint 3 Lec.pptx
ArjayBalberan1
Mysql1
Mysql1Mysql1
Mysql1
rajikaa
ADV PPT 8 LAB.pptx
ADV PPT 8 LAB.pptxADV PPT 8 LAB.pptx
ADV PPT 8 LAB.pptx
ArjayBalberan1
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
poornima sugumaran
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
poornima sugumaran
MS SQLSERVER:Doing Calculations With Functions
MS SQLSERVER:Doing Calculations With FunctionsMS SQLSERVER:Doing Calculations With Functions
MS SQLSERVER:Doing Calculations With Functions
sqlserver content
MS Sql Server: Doing Calculations With Functions
MS Sql Server: Doing Calculations With FunctionsMS Sql Server: Doing Calculations With Functions
MS Sql Server: Doing Calculations With Functions
DataminingTools Inc
MS SQL SERVER: Doing Calculations With Functions
MS SQL SERVER: Doing Calculations With FunctionsMS SQL SERVER: Doing Calculations With Functions
MS SQL SERVER: Doing Calculations With Functions
sqlserver content
Database Query Using SQL_ip.docx
Database Query Using SQL_ip.docxDatabase Query Using SQL_ip.docx
Database Query Using SQL_ip.docx
VandanaGoyal21
Introduction to oracle functions
Introduction to oracle functionsIntroduction to oracle functions
Introduction to oracle functions
Nitesh Singh
5.Agg. Function.pdf
5.Agg. Function.pdf5.Agg. Function.pdf
5.Agg. Function.pdf
ssuser8b6c85
MySQL-commands.pdf
MySQL-commands.pdfMySQL-commands.pdf
MySQL-commands.pdf
ssuserc5aa74
2. mathematical functions in excel
2. mathematical functions in excel2. mathematical functions in excel
2. mathematical functions in excel
Dr. Prashant Vats
Oracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic FunctionsOracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic Functions
Zohar Elkayam
count^J Product^J functions.pptx
count^J Product^J functions.pptxcount^J Product^J functions.pptx
count^J Product^J functions.pptx
MdAquibRazi1
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
ADV Powepoint 3 Lec.pptx
ADV Powepoint 3 Lec.pptxADV Powepoint 3 Lec.pptx
ADV Powepoint 3 Lec.pptx
ArjayBalberan1
Mysql1
Mysql1Mysql1
Mysql1
rajikaa
MS SQLSERVER:Doing Calculations With Functions
MS SQLSERVER:Doing Calculations With FunctionsMS SQLSERVER:Doing Calculations With Functions
MS SQLSERVER:Doing Calculations With Functions
sqlserver content
MS Sql Server: Doing Calculations With Functions
MS Sql Server: Doing Calculations With FunctionsMS Sql Server: Doing Calculations With Functions
MS Sql Server: Doing Calculations With Functions
DataminingTools Inc
MS SQL SERVER: Doing Calculations With Functions
MS SQL SERVER: Doing Calculations With FunctionsMS SQL SERVER: Doing Calculations With Functions
MS SQL SERVER: Doing Calculations With Functions
sqlserver content
Database Query Using SQL_ip.docx
Database Query Using SQL_ip.docxDatabase Query Using SQL_ip.docx
Database Query Using SQL_ip.docx
VandanaGoyal21

More from sadiariasat10 (20)

transactionprocessingppt-171212112608.pptx
transactionprocessingppt-171212112608.pptxtransactionprocessingppt-171212112608.pptx
transactionprocessingppt-171212112608.pptx
sadiariasat10
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunningBrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunningBrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
48131.pptx researching methods research methods
48131.pptx researching methods research methods48131.pptx researching methods research methods
48131.pptx researching methods research methods
sadiariasat10
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
sadiariasat10
IS-Overview.pptx information system in business
IS-Overview.pptx information system in businessIS-Overview.pptx information system in business
IS-Overview.pptx information system in business
sadiariasat10
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dmlDDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
me-introduction-may-2.pptx intro to basic
me-introduction-may-2.pptx intro to basicme-introduction-may-2.pptx intro to basic
me-introduction-may-2.pptx intro to basic
sadiariasat10
module-5-session-1.pptx module 5 session
module-5-session-1.pptx module 5 sessionmodule-5-session-1.pptx module 5 session
module-5-session-1.pptx module 5 session
sadiariasat10
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRMhrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
sadiariasat10
EquityReinforcement.pptx Equity theory in
EquityReinforcement.pptx Equity theory inEquityReinforcement.pptx Equity theory in
EquityReinforcement.pptx Equity theory in
sadiariasat10
Normalization.pptx Functional dependence
Normalization.pptx Functional dependenceNormalization.pptx Functional dependence
Normalization.pptx Functional dependence
sadiariasat10
ch13.pptx Database effefiency and tuning
ch13.pptx Database effefiency and tuningch13.pptx Database effefiency and tuning
ch13.pptx Database effefiency and tuning
sadiariasat10
ieee802-11.pptx wireless lan IEEE 802 11
ieee802-11.pptx wireless lan IEEE 802 11ieee802-11.pptx wireless lan IEEE 802 11
ieee802-11.pptx wireless lan IEEE 802 11
sadiariasat10
IEEE-802.11overview.pptx ieee 802 11 overview
IEEE-802.11overview.pptx ieee 802 11 overviewIEEE-802.11overview.pptx ieee 802 11 overview
IEEE-802.11overview.pptx ieee 802 11 overview
sadiariasat10
lecture22.pptx relational Algebra basics types
lecture22.pptx relational Algebra basics typeslecture22.pptx relational Algebra basics types
lecture22.pptx relational Algebra basics types
sadiariasat10
signal propagation.pptx basics of signal propagation
signal propagation.pptx basics of signal propagationsignal propagation.pptx basics of signal propagation
signal propagation.pptx basics of signal propagation
sadiariasat10
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
lan-141028090025-conversion-gate02.pptx LAN MAN WANlan-141028090025-conversion-gate02.pptx LAN MAN WAN
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
sadiariasat10
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
DOC-20240829-WA0013..pptx introduction to LAN Man  and wanDOC-20240829-WA0013..pptx introduction to LAN Man  and wan
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
sadiariasat10
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptxWebsite-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
sadiariasat10
transactionprocessingppt-171212112608.pptx
transactionprocessingppt-171212112608.pptxtransactionprocessingppt-171212112608.pptx
transactionprocessingppt-171212112608.pptx
sadiariasat10
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunningBrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunningBrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunning
sadiariasat10
48131.pptx researching methods research methods
48131.pptx researching methods research methods48131.pptx researching methods research methods
48131.pptx researching methods research methods
sadiariasat10
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
6._Research_methods_quan_qual_and_mixed_Paul_B_and_Anne_J.ppt methods x
sadiariasat10
IS-Overview.pptx information system in business
IS-Overview.pptx information system in businessIS-Overview.pptx information system in business
IS-Overview.pptx information system in business
sadiariasat10
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dmlDDL and DML.pptx ddl vs dml ddl and dml ddl and dml
DDL and DML.pptx ddl vs dml ddl and dml ddl and dml
sadiariasat10
me-introduction-may-2.pptx intro to basic
me-introduction-may-2.pptx intro to basicme-introduction-may-2.pptx intro to basic
me-introduction-may-2.pptx intro to basic
sadiariasat10
module-5-session-1.pptx module 5 session
module-5-session-1.pptx module 5 sessionmodule-5-session-1.pptx module 5 session
module-5-session-1.pptx module 5 session
sadiariasat10
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRMhrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
hrm301-10.pptx HRm HRM HRM HRM HRM HRM HRM HRM
sadiariasat10
EquityReinforcement.pptx Equity theory in
EquityReinforcement.pptx Equity theory inEquityReinforcement.pptx Equity theory in
EquityReinforcement.pptx Equity theory in
sadiariasat10
Normalization.pptx Functional dependence
Normalization.pptx Functional dependenceNormalization.pptx Functional dependence
Normalization.pptx Functional dependence
sadiariasat10
ch13.pptx Database effefiency and tuning
ch13.pptx Database effefiency and tuningch13.pptx Database effefiency and tuning
ch13.pptx Database effefiency and tuning
sadiariasat10
ieee802-11.pptx wireless lan IEEE 802 11
ieee802-11.pptx wireless lan IEEE 802 11ieee802-11.pptx wireless lan IEEE 802 11
ieee802-11.pptx wireless lan IEEE 802 11
sadiariasat10
IEEE-802.11overview.pptx ieee 802 11 overview
IEEE-802.11overview.pptx ieee 802 11 overviewIEEE-802.11overview.pptx ieee 802 11 overview
IEEE-802.11overview.pptx ieee 802 11 overview
sadiariasat10
lecture22.pptx relational Algebra basics types
lecture22.pptx relational Algebra basics typeslecture22.pptx relational Algebra basics types
lecture22.pptx relational Algebra basics types
sadiariasat10
signal propagation.pptx basics of signal propagation
signal propagation.pptx basics of signal propagationsignal propagation.pptx basics of signal propagation
signal propagation.pptx basics of signal propagation
sadiariasat10
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
lan-141028090025-conversion-gate02.pptx LAN MAN WANlan-141028090025-conversion-gate02.pptx LAN MAN WAN
lan-141028090025-conversion-gate02.pptx LAN MAN WAN
sadiariasat10
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
DOC-20240829-WA0013..pptx introduction to LAN Man  and wanDOC-20240829-WA0013..pptx introduction to LAN Man  and wan
DOC-20240829-WA0013..pptx introduction to LAN Man and wan
sadiariasat10
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptxWebsite-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
Website-IASBO-SBOA-How-to-prepare-for-an-audit.pptx
sadiariasat10

Recently uploaded (20)

Investment Opportunities in Semiconductor and Advanced Electronics Industries
Investment Opportunities in Semiconductor and Advanced Electronics IndustriesInvestment Opportunities in Semiconductor and Advanced Electronics Industries
Investment Opportunities in Semiconductor and Advanced Electronics Industries
Thailand Board of Investment North America
Selec Controls Company Profile FY25-26.pdf
Selec Controls Company Profile FY25-26.pdfSelec Controls Company Profile FY25-26.pdf
Selec Controls Company Profile FY25-26.pdf
Selec Controls
Menig Card for Christmas 2024/Easter 2025
Menig Card for Christmas 2024/Easter 2025Menig Card for Christmas 2024/Easter 2025
Menig Card for Christmas 2024/Easter 2025
Paul Menig
catalog. for freight forwarding business
catalog. for freight forwarding businesscatalog. for freight forwarding business
catalog. for freight forwarding business
ILHAM GROUP INTERNATIONAL
Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Most Influential Leaders Transforming the Future, 2025Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Leaders Magazine
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdfMohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal GMI
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity KitBradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
JABradley1
Raman Bhaumik - A Junior Software Developer
Raman Bhaumik - A Junior Software DeveloperRaman Bhaumik - A Junior Software Developer
Raman Bhaumik - A Junior Software Developer
Raman Bhaumik
Company Profile & SWOT Analysis List.pdf
Company Profile & SWOT Analysis List.pdfCompany Profile & SWOT Analysis List.pdf
Company Profile & SWOT Analysis List.pdf
RobertPhillips265023
Advanced SystemCare Pro Crack Download 2025
Advanced SystemCare Pro Crack Download 2025Advanced SystemCare Pro Crack Download 2025
Advanced SystemCare Pro Crack Download 2025
bhutbhijan
Laparoscopic UHD Imaging System Pitch Deck | March 2025
Laparoscopic UHD Imaging System Pitch Deck | March 2025Laparoscopic UHD Imaging System Pitch Deck | March 2025
Laparoscopic UHD Imaging System Pitch Deck | March 2025
Hector Del Castillo, CPM, CPMM
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
sahilranawade9297
T-shirt Printing Business New Business Idea
T-shirt Printing Business New Business IdeaT-shirt Printing Business New Business Idea
T-shirt Printing Business New Business Idea
SujeetPrajapati16
Integrity e-commerce Trends FinTech 2025
Integrity e-commerce Trends FinTech 2025Integrity e-commerce Trends FinTech 2025
Integrity e-commerce Trends FinTech 2025
Ed Morrissey
Securiport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure - A Commitment To Transparency And IntegritySecuriport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure
Top 10 Software Development Companies in USA 2025
Top 10 Software Development Companies in USA 2025Top 10 Software Development Companies in USA 2025
Top 10 Software Development Companies in USA 2025
SoluLab1231
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptxThe Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
Charles Cotter, PhD
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Ignite Capital
Demo of switch abstraction library full disclosure
Demo of switch abstraction library full disclosureDemo of switch abstraction library full disclosure
Demo of switch abstraction library full disclosure
yelamantip
HRD Support Program in Semiconductor & Advanced Electronics Industries
HRD Support Program in Semiconductor & Advanced Electronics IndustriesHRD Support Program in Semiconductor & Advanced Electronics Industries
HRD Support Program in Semiconductor & Advanced Electronics Industries
Thailand Board of Investment North America
Investment Opportunities in Semiconductor and Advanced Electronics Industries
Investment Opportunities in Semiconductor and Advanced Electronics IndustriesInvestment Opportunities in Semiconductor and Advanced Electronics Industries
Investment Opportunities in Semiconductor and Advanced Electronics Industries
Thailand Board of Investment North America
Selec Controls Company Profile FY25-26.pdf
Selec Controls Company Profile FY25-26.pdfSelec Controls Company Profile FY25-26.pdf
Selec Controls Company Profile FY25-26.pdf
Selec Controls
Menig Card for Christmas 2024/Easter 2025
Menig Card for Christmas 2024/Easter 2025Menig Card for Christmas 2024/Easter 2025
Menig Card for Christmas 2024/Easter 2025
Paul Menig
Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Most Influential Leaders Transforming the Future, 2025Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Most Influential Leaders Transforming the Future, 2025
Worlds Leaders Magazine
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdfMohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal_ The Green Visionary Behind GMI Infras Sustainable Legacy.pdf
Mohit Bansal GMI
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity KitBradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
Bradley_Jamelia_BSEB_PB1_2025-03 Personal Brand Identity Kit
JABradley1
Raman Bhaumik - A Junior Software Developer
Raman Bhaumik - A Junior Software DeveloperRaman Bhaumik - A Junior Software Developer
Raman Bhaumik - A Junior Software Developer
Raman Bhaumik
Company Profile & SWOT Analysis List.pdf
Company Profile & SWOT Analysis List.pdfCompany Profile & SWOT Analysis List.pdf
Company Profile & SWOT Analysis List.pdf
RobertPhillips265023
Advanced SystemCare Pro Crack Download 2025
Advanced SystemCare Pro Crack Download 2025Advanced SystemCare Pro Crack Download 2025
Advanced SystemCare Pro Crack Download 2025
bhutbhijan
Laparoscopic UHD Imaging System Pitch Deck | March 2025
Laparoscopic UHD Imaging System Pitch Deck | March 2025Laparoscopic UHD Imaging System Pitch Deck | March 2025
Laparoscopic UHD Imaging System Pitch Deck | March 2025
Hector Del Castillo, CPM, CPMM
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
Vision Streategies for Pharmaceutical industries in Entrepreneurship manageme...
sahilranawade9297
T-shirt Printing Business New Business Idea
T-shirt Printing Business New Business IdeaT-shirt Printing Business New Business Idea
T-shirt Printing Business New Business Idea
SujeetPrajapati16
Integrity e-commerce Trends FinTech 2025
Integrity e-commerce Trends FinTech 2025Integrity e-commerce Trends FinTech 2025
Integrity e-commerce Trends FinTech 2025
Ed Morrissey
Securiport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure - A Commitment To Transparency And IntegritySecuriport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure - A Commitment To Transparency And Integrity
Securiport Arouna Toure
Top 10 Software Development Companies in USA 2025
Top 10 Software Development Companies in USA 2025Top 10 Software Development Companies in USA 2025
Top 10 Software Development Companies in USA 2025
SoluLab1231
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptxThe Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
The Role of Data Analytics in Shaping Leadership Trends_ARL_27 March 2025.pptx
Charles Cotter, PhD
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Tran Quoc Bao Named Top Voice in Healthcare and Vietnam LinkedIn Community by...
Ignite Capital
Demo of switch abstraction library full disclosure
Demo of switch abstraction library full disclosureDemo of switch abstraction library full disclosure
Demo of switch abstraction library full disclosure
yelamantip

aggregatefunction-220420051702.pptx aggregate

  • 2. SQL AGGREGATE FUNCTION SQL aggregation function is used to perform the calculation on multiple rows of a single column of a table. It returns a single value. It is also used to summarize the data. This function ignore the null values except the count function .
  • 4. TYPES OF SQL AGGREGATION FUNCTION Count ( ) : Returns the numbers of rows Sum ( ) : Returns the sum Avg ( ) : Returns the average value Max ( ) : Returns the smallest value Min ( ) : Returns the largest value
  • 5. COUNT FUNCTION Count function is used to count the number of rows in database table .It can work on both numeric and non-numeric data types. Count function uses the count (*) that returns the count of all the rows in a specific table. Count (*) considers duplicate and null . This function does not count the null value . Table name :Employee
  • 6. EXAMPLE :TABLE NAME DATE PAGES RAMU 22022-01-12 34 GEETHA 22022-01-12 74 SEETHA 22022-01-12 64 RAM 22022-01-12 94 SUKRIA 22022-01-12 64
  • 7. SYNTAX OF COUNT Syntax: select count(Pages) from employee; Count (pages) 5 1 row in set Syntax: select count (name) from employee; Count(name) 5 1 row in set
  • 8. SUM FUNCTION Sum() function is an aggregate function that calculates the sum of all or distinct values in an expression . SYNTAX: SELECT SUM (PAGES) FROM EMPLOYEE; SUM(PAGES) 330 1 ROW IN A SET
  • 9. AVERAGE FUNCTION The avg function is used to calculate the average value of the numeric type. Average function returns the average of all non-null values. syntax: select avg (pages)from employee; avg(pages) 66.0000 1row in set
  • 10. MAX FUNCTION Max function is used to find the maximum value of certain column. This function determines the largest value of all selected values of columns. Syntax: select max (pages) from employee; Max(pages) 94 1 row in set
  • 11. MIN FUNCTION The Min function is used to find the minimum value of certain column. This function determines the smallest value of all selected values of a column. syntax: Select min(pages)from employee ; Min(pages) 34 1 row in set