Learn there is no standard SQL function for finding sub-strings, but all major systems provide the capability.
- [Instructor] The SQL standard does not…include a sub-string function,…but all the major database engines have something like this.…The name of the function may be different and there may be…other differences, but this is generally how it works.…We're going to use the album database for this example.…A sub-string function allows you to select part of a string…based on the position of the characters in the string.…So, take this query.…In this simple query I used the literal string this string.…
The second argument to the sub-string function…is the starting position for the sub-string.…The word string starts at the six position so using…the number six, the function will return the word string.…And I press go and we get the result is the word string.…This function can be particularly useful…in parsing out packed data from a text column.…For example, in this query, which I've pasted…from the examples for chapter five,…I'm selecting the released column,…which is a date in year, month, day format.…
And sub-strings for the year and month…
- 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.