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
Class notes

DBMS

Rating
-
Sold
-
Pages
3
Uploaded on
12-01-2025
Written in
2024/2025

A *Database Management System (DBMS)* is software that organizes, stores, manages, and retrieves data efficiently. It ensures data integrity, security, and consistency while supporting concurrent access and complex queries.

Institution
Course

Content preview

*Aggregate Functions in SQL*

*Aggregate functions* in SQL are used to perform computations on a set of values and
return a single value. They are extremely useful when working with large datasets, as they
help you quickly summarize or extract important information.

The most commonly used aggregate functions in SQL are:

- *COUNT()*
- *SUM()*
- *AVG()*
- *MIN()*
- *MAX()*

These functions allow you to perform a variety of calculations, such as counting records,
summing values, and finding the average, minimum, or maximum values in a dataset.

---

*Common Aggregate Functions:*

1. *COUNT()*
The *COUNT()* function returns the number of rows in a table or a selected group of rows.
It is commonly used to count how many records meet a certain condition.

#### Example:
```sql
SELECT COUNT(*) FROM employees;
```
This query counts the total number of rows in the *employees* table.

2. *SUM()*
The *SUM()* function returns the sum of a set of values, typically used for numerical
columns.

#### Example:
```sql
SELECT SUM(salary) FROM employees;
```
This query calculates the total salary of all employees in the *employees* table.

3. *AVG()*
The *AVG()* function returns the average value of a set of values.

#### Example:
```sql

SELECT AVG(salary) FROM employees;

Written for

Institution
Course

Document information

Uploaded on
January 12, 2025
Number of pages
3
Written in
2024/2025
Type
Class notes
Professor(s)
Guru
Contains
All classes

Subjects

$11.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
janannikesavan30

Also available in package deal

Get to know the seller

Seller avatar
janannikesavan30 If you want to speak fluently, then you have to work on your habits first. Your habits are what make you, and if anything is stopping you from achieving your dreams, it\'s your habits. It\'s not just about what you think
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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