Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Reporting with SQL!
You have completed Reporting with SQL!
Preview
Wouldn't it be cool to create excerpts like this...
To create smaller strings from larger piece of text you can use the SUBSTR() funciton or the substring function.'
SELECT SUBSTR(<value or column>, <start>, <length>) FROM <table>;
Cheat Sheets
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
For example, when I search on
google.com for treehouse sql, you'll
0:00
see there's a lot of these ellipses or
three full stops after each other.
0:01
This is because search engines want to
provide you with enough information
0:07
in a standardized way without overloading
you with too much information.
0:11
You don't want information overload.
0:16
It standardizes the output and
doesn't clutter up the page.
0:18
You may want to do this yourself sometime,
for example, on an archive on a blog,
0:22
or the search pages listing product
descriptions on an e-commerce site.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up