Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary RDBMS Notes

Rating
-
Sold
-
Pages
49
Uploaded on
19-09-2025
Written in
2024/2025

It provides the clear understanding of how a data is executed after applying queries using commands DDL and DML Commands.

Institution
Course

Content preview

Aggregate functions
Aggregate functions are often used with the GROUP BY clause of
the SELECT statement.
The GROUP BY clause splits the result-set into groups of values and
the aggregate function can be used to return a single value for each
group.
The most commonly used SQL aggregate functions are:
•MIN() - returns the smallest value within the selected column
•MAX() - returns the largest value within the selected column
•COUNT() - returns the number of rows in a set
•SUM() - returns the total sum of a numerical column
•AVG() - returns the average value of a numerical column



Dr. NGPASC
COIMBATORE | INDIA

, Aggregate functions
MIN() and MAX() Functions

The MIN() function returns the smallest value of the
selected column.
The MAX() function returns the largest value of the
selected column.

Example:

SELECT MIN(Price)FROM Products;

SELECT MIN(Price) AS SmallestPrice
FROM Products;
Dr. NGPASC
COIMBATORE | INDIA

, Aggregate functions
COUNT() Function

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

Example

SELECT COUNT(*) FROM Products;




Dr. NGPASC
COIMBATORE | INDIA

, Aggregate functions
SUM() Function

The SUM() function returns the total sum of a numeric column.

Example

SELECT SUM(Quantity) FROM OrderDetails;




Dr. NGPASC
COIMBATORE | INDIA

Written for

Institution
Course

Document information

Uploaded on
September 19, 2025
Number of pages
49
Written in
2024/2025
Type
SUMMARY

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
tamilmani

Get to know the seller

Seller avatar
tamilmani Dr Ngp arts and science college
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions