group function in sql
--- GROUP FUNCTION | MULTI ROW FUNCTION | AGGREGATE FUNCTION
--- COUNT , MAX , MIN , SUM , AVG
group function in sql
--- GROUP FUNCTION | MULTI ROW FUNCTION | AGGREGATE FUNCTION
--- COUNT , MAX , MIN , SUM , AVG
group by clause in ms sql
/*Group by clause is used to group a selected set of rows into a set of summary
rows by the values of one or more column or expression. It is always used in
Conjunction with one or more aggregate function.*/
SELECT AGGREGATE_FUNCTION(Column_Name) FROM Table_Name
/*Group by exmaple*/
SELECT city, sum(Salary) as TotalSalary FROM tblEmployee GROUP BY City
group functions in sql
Multiple Row Functions (Group functions, Aggregate functions):
(Count, MIN , MAX, AVG, SUM)
will run for multiple rows and return a single value
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us