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, we will learn how to use the IN and NOT IN SQL syntax to filter rows based on a list of values, i
- [Instructor] The SQL where in and not in clause…is not just limited to string values,…we can also use it with numeric values for example.…So let's start by selecting the first_name, last_name…and department_id columns of our employees table.…Assuming that we only want to see employees…whose department_id is 90 or 100,…we can just type where department_id in…and type the department_id values,…for example, 90 comma 100.…
Note that we don't have to place these values…inside quotation mark because these are numeric values,…numbers, and not string values.…Running this query will give us the desired output,…we only see employees assigned to department_id 90…and employees assigned to department_id 100.…We can also change in to not in…similarly to our previous example using string values.…Running this query will provide us with the desired output,…all employees who are not assigned…to department_id 90 or 100,…and of course we are not just limited…to two values inside our brackets,…we can also exclude employees from department_id 80…
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.