Learn how to use the ORDER BY clause in your SQL query to order the data that is returned from your database based on one or more columns in either ASCENDING or DESCENDING manner.
- [Instructor] When writing SQL queries,…we can also sort the output of the data…based on a specific column or multiple columns.…So for example, let's say that we want to see…all of the employees in our company…from the employee's tables sorted by their salary.…So if we'll just type:…select first_name, last_name, salary…from employees…without adding anything to the SQL query,…then this query will not get us the output…in the way we desire,…that is sorted by salary.…
We basically see a list of all employees in our company,…and their salaries, but the data is not sorted,…or ordered, by any particular column.…We can fix that by using the order_by clause…of the SQL language.…Note that order_by always goes after the from clause…in our SQL query, which always goes after…the select clause of our SQL query.…
So we type select, and the column names…from our table, and order_by one or more columns.…So we can type:…order_by salary, for example,…run the query again, and see the same output…but this time ordered, or sorted by,…
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
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Database Foundations: Administrationwith Adam Wilbert1h 14m Beginner
Oracle 12c Database: Administrationwith David Yahalom3h 58m 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.