How do you return specific rows from a query? Can you return partial results or return results a page at a time? Learn the answers to these questions in this video.
- You can use SELECT with the WHERE clause … to select rows from a table, here we're going to be … working with the world database again. … And we'll type a SELECT statement here, … SELECT Name, Continent, Region FROM Country; … now if I stop just there, we'll get these three columns … and every row from the Country table. … So I'm going to execute with the F9 key here … and you see we get total rows loaded, 239 rows. … And we have these three columns for all of those rows. … Now if I only want some of those rows, … I can select them say, by Continent, … using the WHERE clause, WHERE continent equals Europe. … So the WHERE clause takes a logical expression … that represents a comparison, so in this case … the Continent column, where that column … equals this value which is a literal string … so it's in single quotes, so where that column … says Europe, we'll only get those rows. … So I'm going to execute this query now … and you notice that we get 46 rows … and all of them have Europe for the continent. …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. A Simple CRUD Application
- 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.