{"id":15624,"date":"2023-04-17T09:47:37","date_gmt":"2023-04-17T09:47:37","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=15624"},"modified":"2023-04-17T09:47:37","modified_gmt":"2023-04-17T09:47:37","slug":"aggregate-functions-in-dbms","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/","title":{"rendered":"Aggregate Functions in DBMS"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\" alt=\"\" \/><\/p>\n<p>Aggregate Functions in DBMS are an essential component that helps the user in the analysis and extraction of meaningful information from large datasets. The Aggregate Functions in DBMS perform the calculation over the whole data and return a single-valued output. Here we will learn about Aggregate Functions in DBMS and different types of Aggregate Functions in DBMS.<\/p>\n<h2>Aggregate Functions in DBMS<\/h2>\n<p>Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output. These functions are often used to generate summary statistics on large datasets, such as the average, minimum, maximum, and sum of a set of values. They can also be used to count the number of rows in a dataset, and perform other complex calculations. In a nutshell, Aggregate Functions in DBMS are used for summarizing the data.<\/p>\n<h2>Types of Aggregate Functions in DBMS<\/h2>\n<p>Aggregate Functions in DBMS are of different types as shown in the figure given below.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468068146-1-01%20%2871%29.png\" alt=\"\" \/><\/p>\n<p>To understand the above-mentioned Aggregate Functions in DBMS, let us consider the following table.<\/p>\n<p><strong>Table Name: PREP_TABLE<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>PRODUCT<\/th>\n<th>COMPANY<\/th>\n<th>QTY<\/th>\n<th>RATE<\/th>\n<th>COST<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Product1<\/td>\n<td>Company1<\/td>\n<td>2<\/td>\n<td>10<\/td>\n<td>20<\/td>\n<\/tr>\n<tr>\n<td>Product2<\/td>\n<td>Company2<\/td>\n<td>3<\/td>\n<td>25<\/td>\n<td>75<\/td>\n<\/tr>\n<tr>\n<td>Product3<\/td>\n<td>Company1<\/td>\n<td>2<\/td>\n<td>30<\/td>\n<td>60<\/td>\n<\/tr>\n<tr>\n<td>Product4<\/td>\n<td>Company3<\/td>\n<td>5<\/td>\n<td>10<\/td>\n<td>50<\/td>\n<\/tr>\n<tr>\n<td>Product5<\/td>\n<td>Company2<\/td>\n<td>2<\/td>\n<td>20<\/td>\n<td>40<\/td>\n<\/tr>\n<tr>\n<td>Product6<\/td>\n<td>Company1<\/td>\n<td>3<\/td>\n<td>25<\/td>\n<td>75<\/td>\n<\/tr>\n<tr>\n<td>Product7<\/td>\n<td>Company1<\/td>\n<td>5<\/td>\n<td>30<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>Product8<\/td>\n<td>Company1<\/td>\n<td>3<\/td>\n<td>10<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>Product9<\/td>\n<td>Company2<\/td>\n<td>2<\/td>\n<td>25<\/td>\n<td>50<\/td>\n<\/tr>\n<tr>\n<td>Product10<\/td>\n<td>Company3<\/td>\n<td>4<\/td>\n<td>30<\/td>\n<td>120<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>COUNT()<\/h3>\n<p>This COUNT() function is used to count the number of rows in a table or a result set. It can also be used with a specific column to count the number of non-null values in that column.<\/p>\n<p><strong>Syntax of COUNT() Function<\/strong><\/p>\n<pre><code>COUNT(*) OR COUNT(COLUMN_NAME)<\/code><\/pre>\n<p><strong>Example of COUNT() Function<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COUNT(*)  \nFROM PREP_TABLE;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>10<\/code><\/pre>\n<p><strong>Example of COUNT() Function with WHERE Clause<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COUNT(*)  \nFROM PREP_TABLE;  \nWHERE RATE>=20;<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>7<\/code><\/pre>\n<p><strong>Example of COUNT() Function with DISTINCT<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COUNT(DISTINCT COMPANY)  \nFROM PREP_TABLE;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>3<\/code><\/pre>\n<p><strong>Example of COUNT() Function with GROUP BY<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COMPANY, COUNT(*)  \nFROM PREP_TABLE  \nGROUP BY COMPANY; <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Company1  5\nCompany2  3\nCompany3  2<\/code><\/pre>\n<p><strong>Example of COUNT() Function with HAVING<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COMPANY, COUNT(*)  \nFROM PREP_TABLE  \nGROUP BY COMPANY  \nHAVING COUNT(*)>2; <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Company1  5 \nCompany2  3<\/code><\/pre>\n<h3>SUM()<\/h3>\n<p>The SUM() function in DBMS accepts a column name as an input and returns the total of all non-NULL values in that column. It only works on numeric fields (i.e the columns contain only numeric values). If this function is applied to columns that include both non-numeric (like, strings) and numeric values, it only considers the numeric values. If there are no numeric values, the method returns 0.<\/p>\n<p><strong>Syntax of SUM() Function<\/strong><\/p>\n<pre><code>SUM(COLUMN_NAME) <\/code><\/pre>\n<p><strong>Example of SUM() Function<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT SUM(COST)  \nFROM PREP_TABLE;<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>670<\/code><\/pre>\n<p><strong>Example of SUM() Function with WHERE<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT SUM(COST)  \nFROM PREP_TABLE \nWHERE QTY>3;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>320<\/code><\/pre>\n<p><strong>Example of SUM() Function with GROUP BY<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT SUM(COST)  \nFROM PREP_TABLE \nWHERE QTY>3  \nGROUP BY COMPANY;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Company1  150\nCompany2  170<\/code><\/pre>\n<p><strong>Example of SUM() Function with HAVING<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT COMPANY, SUM(COST)  \nFROM PREP_TABLE \nGROUP BY COMPANY  \nHAVING SUM(COST)>=170;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Company1 335\nCompany3 170<\/code><\/pre>\n<h3>AVG()<\/h3>\n<p>The AVG() aggregate function in DBMS takes the column name as an input and returns the average of all non-NULL values in that column. It only works on numeric fields (i.e the columns contain only numeric values).<\/p>\n<p><strong>Syntax of AVG() Function<\/strong><\/p>\n<pre><code>AVG(COLUMN_NAME)<\/code><\/pre>\n<p><strong>Example of AVG() Function<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT AVG(COST)  \nFROM PREP_TABLE;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>67.00<\/code><\/pre>\n<h3>MAX()<\/h3>\n<p>The MAX() function accepts the column name as a parameter and returns the maximum value in the column. When no row is specified, MAX() function returns NULL.<\/p>\n<p><strong>Syntax of MAX() Function<\/strong><\/p>\n<pre><code>MAX(COLUMN_NAME)<\/code><\/pre>\n<p><strong>Example of MAX() Function<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT MAX(RATE)  \nFROM PREP_TABLE;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>30<\/code><\/pre>\n<h3>MIN()<\/h3>\n<p>The MIN() function accepts the column name as a parameter and returns the minimum value in the column. When no row is specified, MIN() Function returns NULL as result.<\/p>\n<p><strong>Syntax of MIN() Function:<\/strong><\/p>\n<pre><code>MIN(COLUMN_NAME)<\/code><\/pre>\n<p><strong>Example of MIN() Function<\/strong><\/p>\n<pre><code>SQL Query:\nSELECT MIN(RATE)  \nFROM PREP_TABLE;  <\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>10<\/code><\/pre>\n<p><strong>Conclusion<\/strong><br \/>\nIn this article, we learned about the Aggregate Functions in DBMS. The Aggregate Functions in DBMS help us in dealing with large datasets. We have discussed different types of Aggregate Functions in DBMS which include, COUNT(), SUM(), AVG(), MAX(), and MIN(). Whether you are a data analyst, a database administrator, or a developer, understanding how to use aggregate functions in DBMS is essential for working with large datasets and making informed decisions based on data analysis.<\/p>\n<h2>Frequently Asked Questions (FAQs)<\/h2>\n<p>Here are some Frequently Asked Questions related to \u201cAggregate Functions in DBMS\u201d.<\/p>\n<p><strong>Ques 1. What is the purpose of using aggregate functions in DBMS?<\/strong><br \/>\n<strong>Ans.<\/strong> The purpose of using aggregate functions in DBMS is to summarize data from one or more columns of a table and provide meaningful insights.<\/p>\n<p><strong>Ques 2. What are the commonly used aggregate functions in DBMS?<\/strong><br \/>\n<strong>Ans.<\/strong> Some commonly used aggregate functions in DBMS are COUNT(), SUM(), AVG(), MAX(), MIN(), etc.<\/p>\n<p><strong>Ques 3. What is the difference between SUM() and AVG() aggregate functions in DBMS?<\/strong><br \/>\n<strong>Ans.<\/strong> SUM() function calculates the total sum of a column whereas the AVG() function calculates the average of a column.<\/p>\n<p><strong>Ques 4. What is the difference between the MAX() and MIN() aggregate functions in DBMS?<\/strong><br \/>\n<strong>Ans.<\/strong> MAX() function returns the maximum value in a column whereas MIN() function returns the minimum value in a column.<\/p>\n<p><strong>Ques 5. Can we use aggregate functions in DBMS with the DISTINCT keyword?<\/strong><br \/>\n<strong>Ans.<\/strong> Yes, aggregate functions can be used with the DISTINCT keyword to perform calculations on unique values of a column.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aggregate Functions in DBMS are an essential component that helps the user in the analysis and extraction of meaningful information from large datasets. The Aggregate Functions in DBMS perform the calculation over the whole data and return a single-valued output. Here we will learn about Aggregate Functions in DBMS and different types of Aggregate Functions [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[190],"tags":[],"class_list":["post-15624","post","type-post","status-publish","format-standard","hentry","category-dbms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Aggregate Functions in DBMS<\/title>\n<meta name=\"description\" content=\"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Aggregate Functions in DBMS\" \/>\n<meta property=\"og:description\" content=\"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-17T09:47:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Aggregate Functions in DBMS\",\"datePublished\":\"2023-04-17T09:47:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\"},\"wordCount\":768,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\",\"articleSection\":[\"DBMS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\",\"name\":\"Aggregate Functions in DBMS\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\",\"datePublished\":\"2023-04-17T09:47:37+00:00\",\"description\":\"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DBMS\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/dbms\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Aggregate Functions in DBMS\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Aggregate Functions in DBMS","description":"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/","og_locale":"en_US","og_type":"article","og_title":"Aggregate Functions in DBMS","og_description":"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.","og_url":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-04-17T09:47:37+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Aggregate Functions in DBMS","datePublished":"2023-04-17T09:47:37+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/"},"wordCount":768,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg","articleSection":["DBMS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/","url":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/","name":"Aggregate Functions in DBMS","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg","datePublished":"2023-04-17T09:47:37+00:00","description":"Aggregate functions in DBMS are used to perform calculations on sets of data. They take a set of values as input and return a single value as output.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1681468067331-Aggregate%20Functions%20in%20DBMS.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/aggregate-functions-in-dbms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"DBMS","item":"https:\/\/prepbytes.com\/blog\/category\/dbms\/"},{"@type":"ListItem","position":3,"name":"Aggregate Functions in DBMS"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/15624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=15624"}],"version-history":[{"count":2,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/15624\/revisions"}],"predecessor-version":[{"id":15626,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/15624\/revisions\/15626"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=15624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=15624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=15624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}