Learn how SQL provides a rudimentary conditional expression, which is cumbersome but works well for many use cases.
- [Instructor] SQL provides a form…of conditional expression.…It's a little cumbersome, but here's how it works.…We're using the in memory database for this.…And creating a simple table with two columns,…a and b, both of them INTEGERS.…And the table's called booltest.…We insert one row with values 1 and 0.…And then select from it.…And then we're going to experiment…with these two different forms of the CASE expression.…So I'm gonna go ahead and press Go.…And you can see the results here.…You'll notice that the row by itself,…SELECT asterisk FROM booltest,…has two values in one row, 1 and 0.…
There are two forms to the CASE expression.…In the first version here, we have…CASE WHEN, and then a value.…And it tests that value, whether it's true or false.…In SQL, an integer 1 is true, an integer 0 is false.…Anything non-zero is considered true.…Any string that's nonempty is considered true.…And an empty string is considered false.…Or in some versions of SQL, you may have…boolean types that have true and false.…SQLite does not have that.…
- Understanding SQL terminology and syntax
- Creating new tables
- Inserting and updating data
- Writing basic SQL queries
- 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
- Defining functions in PHP
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times1m 52s
11. Views and Subselects
12. Defined Functions
13. 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.