Builds knowledge of built-in SQL string functions, including the return of partial strings and cleaning of returned data
- [Instructor] We've used left and right to return parts…of a string from the beginning or end, respectively.…But, what if you wanted to return a partial string…from the middle of a string?…Here, we would use substring.…So, let's recreate our actor name example using that.…Substring takes two parameters.…Or in fact, it takes three parameters.…It takes the field name.…And then, two numerical values.…
It takes the starting character, which is one and not zero.…For the first letter of the name.…And then, it takes the number of the characters…that it should look for.…Which for 'P' in Penelope, is just one.…So, if we run that,…we see we have the first letter's returned to us.…Let's have another look at that function.…If we were to try…1,2…you see we get two characters from each of them there.…We've got PE and NI and ED.…
And, if we tried…2,1…that would return us the second character in the string.…So, let's pop that back to 1,1 as it was.…Now, for our second column,…going to try…first_name…,2…and you see that's returned us all the rest of the name.…
Join Emma Saunders as she shows you how to design and write simple SQL queries for data reporting and analysis. Review the different types of SQL, and then learn how to filter, group, and sort data, using built-in SQL functions to format or calculate results. Learn a bit about data types and database design. Discover how to perform more complex queries, such as joining data together from different database tables. Last but not least, Emma shows how to save your queries as views, so you can run them again and again.
- Using different versions of SQL
- Retrieving data with SELECT statements
- Filtering and sorting your results
- Transforming results with built-in SQL functions
- Grouping SQL results
- Merging data from multiple tables
- Identifying data types, and how to make sense of your database design
- Saving SQL queries
Skill Level Intermediate
1. Use SQL to Report Data
Data types in SQL databases5m 47s
2. Group your SQL Results
3. Merge Data from Multiple Tables
4. Advanced Features and Taking Your Learning Forwards
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.