Learn how to combine GROUP BY and aggregate SQL functions to summarize data from multiple groups of values in your tables.
- [Narrator] There are additional aggregation functions…we can use in combination with the group by clause,…for example, let's say we want to see the average salary…for employees based on each department in our company.…To accomplish that I can type select average salary…comma department id from employees group by department id.…Executing this query will show us the average salary…per each department.…
Note that I can get rid of these very precise,…but not so readable numbers by rounding the output.…I can nest functions together,…such as placing the average function…inside a round function.…Executing the statement again,…in this manner will give me much more readable output.…I can also combine multiple aggregation functions together…in the same statement.…
For example, in addition to showing the average salary,…let's also see the minimum salary…for the lowest earning employee in each department.…To accomplish that I'll type min salary comma department id…and execute the query.…Note that I've combined two functions in the same statement,…
Note: This training course is appropriate for beginning database developers with no prior experience with SQL or Oracle.
- Using Oracle SQL*Developer, the free development environment
- Selecting data from tables
- Filtering data
- Using functions to manipulate data
- Joining data from tables
- Creating tables
- Updating values
- Truncating data
- Grouping and ordering result sets
- Working with primary keys
- Checking constraints
Skill Level Beginner
Oracle 12c Database: Administrationwith David Yahalom3h 58m Beginner
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Database Foundations: Administrationwith Adam Wilbert1h 14m Beginner
Learning Relational Databases (2014)with Adam Wilbert2h 39m Beginner
1. Introduction to SQL
2. Preparing the Course Environment
Downloading the course VM2m 16s
3. Using Oracle SQL Developer
4. Basic SELECT Queries
5. String, Number, and Date Functions
6. Joining Table Data
7. Manipulating Data
8. Grouping Data
9. Advanced Topics
Next steps1m 33s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.