Learn how to use SUBQUERIES and inline views to nest multiple SQL commands in a single SQL query.
- [Instructor] Subqueries in the SQL language…are ways for us to nest multiple SQL commands…inside a single SQL query.…Sounds complex?…It's actually quite straightforward.…Let's see a simple example in action.…We'll start by selecting all of the departments we have…in our departments table.…So select, star, from departments.…We can see that Department number 20…is our Marketing department.…
Remember that as we'll use these values in a moment.…Now, let's assume we want to write a SQL query…which returns all of the employees in our employees table…which are assigned to the Marketing department.…One way for us to do that is to type…select, star, from employees, where department ID equals 20…because 20 is the Department ID code.…This query will run as expected.…
However, there's another slightly cooler way…to accomplish the same thing.…Instead of typing department ID equals 20…and specifying the actual department ID itself,…I can also type, where department ID equals,…and then inside parentheses, another SQL query…returning values which will be using the where condition.…
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.