The document discusses various SQL aggregate functions - SUM(), AVG(), MAX(), MIN(), and COUNT(). It provides examples of how each function can be used to calculate the sum, average, maximum, minimum, and count of values in a column. These functions allow performing calculations across multiple records in a database table.
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 ratings0% found this document useful (0 votes)
277 views18 pages
Art Integrated Project
The document discusses various SQL aggregate functions - SUM(), AVG(), MAX(), MIN(), and COUNT(). It provides examples of how each function can be used to calculate the sum, average, maximum, minimum, and count of values in a column. These functions allow performing calculations across multiple records in a database table.
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/ 18
• SUBMITTED BY: SUBMITTED TO:
DAKSH SMT.NAMRATA SHAH MAM
• ART-INTEGRATION IS A CROSS-CURRICULAR PEDAGOGICAL APPROACH THAT UTILIZES VARIOUS ASPECTS • AND FORMS OF ART AND CULTURE AS THE BASIS FOR LEARNING OF CONCEPTS ACROSS SUBJECTS. AS A • PART OF THE THRUST ON EXPERIENTIAL LEARNING, ART- INTEGRATED EDUCATION WILL BE EMBEDDED IN • CLASSROOM TRANSACTIONS NOT ONLY FOR CREATING JOYFUL CLASSROOMS, BUT ALSO FOR IMBIBING THE • INDIAN ETHOS THROUGH INTEGRATION OF INDIAN ART AND CULTURE IN THE TEACHING AND LEARNING • PROCESS AT EVERY LEVEL. THIS ART-INTEGRATED APPROACH WILL STRENGTHEN THE LINKAGES BETWEEN • EDUCATION AND CULTURE. • DATABASE IS AN ORAGANIZED COLLECTION OF STRUCTURED INFORMATION OR DATA,TYPICALLY STORED ELECTRONICALLY IN A COMPUTER SYSTERM IT IS CONTROLLED BY DATABASE MANAGEMENT SYSTEM • FOR EXAMPLE NETIZENS USE DATABASE USE DATABASE TO STORE INFORMATION LIKE NAME,EMAIL,ADDRESS ETC THIS DATA USED TO IMPROVE USER EXPERIENCE ON USER RECOMMENDATIONS • STRUCTURED QUERRY LANGUAGE.IT IS A LANGUAGE WHICH PROVIDES INTERFACE TO RELATONAL DATA BASE. • SQL PROVIDES A INTERFACE TO SOLVE UPDATE AND AND TO RESEARCH ON Data thourgh data models • For example :SQL PROVIDES SOCIAL MEDIA A PLATRFORMS TO STORE USER DATA AND TO UPDATE IT AS PER USER NEEDS AND ALSO TO PROVIDE A PLATFORM TO INTERACT WITH OTHERS AND TO SHARE POSTS AND MSGS for .THIS all done with help of sql • ABOVE DIAGRAM EXPLAINS A CONCEPT OF DATABASE.POUCH IS CONSIDERED AS DATABASE (A EMPTY DEVICE WHERE WE CAN STORE OUR DATA ) • ANDPEN,PENCIL,FEVICOL,TAPE,MARKERS,TAPES,WHI TENER,GEOMETRICAL EQUIPEMENTS ARE CONSIDERED AS TABLE (DATA)STORED IN A DATABASE. • WE CAN ACCESS THIS DATA AND PERFROM QUERRIES THROUGH FREE SOFTWARE MYSQL.WE CAN UPDATE OUR POUCH(Database) BY ADDING MORE ITEMS (tables) IN IT. 1. SUM() Function: The SQL SUM() function is an aggregate function that is used to perform a calculations on a set of values from a specified expression and return a single values in hier output. for example:the sum of DISTINCT of 1,1 and 2 is 3,while the sum of ALL of 1,1, and 3 is 4. • SELECT SUM (salary) AS “total salary” from employees WHERE salary > 25000; 2. AVG() FUNCTION:SQL server AVG() function is an aggregate function that returns the average values of the specified column values. The AVG() function computes the average of a set of given values by taking the sum of those values and dividing it by the count of non-null values.
EXAMPLE:SELECT AVG(skill_level) FROM EMPLOYEES;
3. MAX() FUCTION: The MAX() function is an aggregate function that is used to find the largest value in the given column or expression . it can be applied on the numeric , character, or date values. It can also be use in GROUP BY function in qurries.
EXAMPLE: SELECT * FROM employee WHERE salary =
(SELECT MAX(salary) from employee); 4. MIN() FUNCTION: The MIN() function is an aggregate function that is used to find the smallest value of given column or expression. It can be apppied or numeric, character or date values. The MIN() is an aggregate function, so it can be used in GROUP BY queries. EXAMPLE:SELECT * FROM employee WHERE salary = (SELECT MIN(salary) from employee); 5. COUNT() FUNCTION: The SQL COUNT function is used to count the nuber of rows returned in a SELECT statement. The COUNT function is only function will only count the records where the expression is NOT NULL is a COUNT.when the expression is a NOT NULL value, it is not included in the COUNT calculation. EXAMPLE:SELECT COUNT(custermer_id) from customers;