Skip to content

Commit

Permalink
Update Aggregate Functions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nariman-nh authored May 1, 2019
1 parent ff18106 commit 1d5b5a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Aggregate Functions.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
Use the SUM function to get the total duration of all films.

Select sum(duration) from films

Get the duration of the longest film.

Select max (duration) from films

Get the average duration of all films.

Select avg(duration) from films

Get the average amount grossed by all films.

Select avg(gross) from films

0 comments on commit 1d5b5a4

Please sign in to comment.