Aliases in SQL acts as labels or nicknames for database columns making query output more readable and easier to understand. Learn how to use the AS syntax in the SQL language to create aliases for columns.
- [Narrator] We can add column aliases…which is a fancy name of saying labels…to the output of our SQL query.…For example, in the query we have executed…in our previous video, we have generated…two new calculated columns.…Salary after bonus and a bonus column.…Note that the actual header value,…the column name for both of these columns…is not very readable or legible.…We can change that by assigning a column alias…to be used in the query output.…
We do that using the AS keyword followed…by the new column alias value.…So I can type AS and in double quotation marks,…type salary plus bonus.…And for the second calculated column,…I can type AS bonus.…Running this query again will generate…more legible column names.…I can also do that for columns that exist…in the Employees table itself.…
And not just for columns whose values…are generated based on calculations.…So for example, instead of first_name,…I can type AS Employee First Name.…And instead of last_name, I can type…AS Employee Last Name.…Running this query with the new column aliases…
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.