0% found this document useful (0 votes)
57 views3 pages

DBMS Lab-7 PDF

1) The document is from Krishna Engineering College's Computer Science and Engineering department and outlines the aim and types of aggregate functions in SQL. 2) It discusses average, count, minimum, maximum and sum aggregate functions and how they calculate values from a set. 3) Aggregate functions ignore null values and are often used with the GROUP BY clause.

Uploaded by

Harshit Rajput
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views3 pages

DBMS Lab-7 PDF

1) The document is from Krishna Engineering College's Computer Science and Engineering department and outlines the aim and types of aggregate functions in SQL. 2) It discusses average, count, minimum, maximum and sum aggregate functions and how they calculate values from a set. 3) Aggregate functions ignore null values and are often used with the GROUP BY clause.

Uploaded by

Harshit Rajput
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

KRISHNA ENGINEERING COLLEGE

(Approved by AICTE & Affiliated to Dr. APJ Abdul Kalam Technical University (Formerly UPTU), Lucknow)
Department of Computer Science and Engineering
Session 2022-23 ODD semester

Practical no……………………….Name of the practical…………………………………..


Student Roll no..…………………Student Name………………Semester/Batch………..

Aim: To Implement Aggregate Functions In SQL.


About: An aggregate function performs a calculation on a set of values, and returns a
single value. Except for COUNT(*) , aggregate functions ignore null values. Aggregate
functions are often used with the GROUP BY clause of the SELECT statement.
Types Of Aggregate Functions:
(a) Average: The AVG() function returns the average value of a numeric column.

(b) Count: The COUNT() function returns the number of rows that matches a specified
criterion.

Faculty Remarks & Signature


KRISHNA ENGINEERING COLLEGE
(Approved by AICTE & Affiliated to Dr. APJ Abdul Kalam Technical University (Formerly UPTU), Lucknow)
Department of Computer Science and Engineering

(c) Minimum: The MIN() function returns the minimum value of a numeric column.

Faculty Remarks & Signature


KRISHNA ENGINEERING COLLEGE
(Approved by AICTE & Affiliated to Dr. APJ Abdul Kalam Technical University (Formerly UPTU), Lucknow)
Department of Computer Science and Engineering
(d) Maximum: The Max() function returns the maximum value of a numeric column.

(e) Sum: The SUM() function returns the sum of all value of a numeric column.

Faculty Remarks & Signature

You might also like