It is much easier to compare strings when their case is folded to either all uppercase or all lowercase.
- [Instructor] There are circumstances … where it can be very useful, … to force a string to all uppercase … or all lowercase characters. … SQL provides the upper and lower functions for this. … For this example we're going to use … the world database, and you'll notice this first … select statement on comparing these two strings. … They're exactly the same except for case. … This first one has some uppercase and lowercase letters … and the right-hand side does not. … And so they are not equivalent. … And so when I select this I'll get a zero … which means false in standard SQL. … So I'm going to go ahead and execute that statement … and you notice that I get a zero … because these two strings are not equivalent. … So for this purpose, if I convert both of these strings, … again I have the same strings, … the mixed case one, and the lowercase one. … But in this case I'm using the lower function … for both of them, which will convert both of the strings … to lowercase before comparing them. …
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.