In addition to retrieving data from your database, the SQL language also provides the capability to perform certain arithmetic calculations as part of your SQL query. Learn how to combine values specified from the user and values stored in your database c
- [Instructor] You can also perform simple calculations…as part of your SQL query.…For example, let's select the first_name,…last_name,…and salary…of all of the employees in our employees table.…Let's say this year was a very good year for our company…in terms of revenue,…and the CEO has decided…to give all employees a raise of 15%.…Man, I wish I worked for that company.…
So in order to predict the new salaries for the employees,…following the raise, we can just type comma, salary,…which is the name of the salary column from our table,…and multiply it by 1.15.…Running the query will show us the new salary value…for all employees…after the 15% bonus has taken effect.…Note that we use the star character…for doing multiplications in our query.…
We can also add additional calculations.…For example, let's say that…in addition to viewing the current salary,…and the projected new salary after the bonus,…we also want to see the absolute bonus value itself.…So we can type comma,…salary times 1.15,…which is the new salary…after the bonus has been applied to it, minus salary,…
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
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.