Using SQL, we can choose to select rows from the database where the data values in certain table columns match a user-supplied list of values. In this video, learn how to use the IN and NOT IN SQL syntax to filter rows based on a list of values, instead o
- [Instructor] Using SQL where in and…where not in, allows us to more easily filter data…based on multiple conditions or criteria.…So let's see an example.…We'll start by selecting the first name, last name…and job ID of all employees in our employees' table.…Assuming that we only want to see employees…that hold the AD VP or IT PROG job IDs.…One way to do it would be to type…where job id equals IT PROG…or job id equals AD VP.…
While this is a fully functional…and correct SQL query, we have an easier way…of matching data based on multiple values.…We can just type where job ID in…and provide a list of all of the values…we wish to filter our data based on.…So for example, where job ID in,…and inside brackets, IT PROG in quotation marks,…comma, AD VP in quotation marks.…
Running this query will present us with the same data.…We can add two, three, four or…more values inside our brackets.…We can also change job ID to not in…instead of in, which will return us…all rows from our employees table…for employees that their job ID value…
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.