Manipulating Strings in SQL
Manipulating Strings in SQL
Knowing how to convert and manipulate your data for an accurate analysis is an important part of
a data analyst’s job. In this reading, you will learn about different SQL functions and their usage,
especially regarding string combinations.
A string is a set of characters that helps to declare the texts in programming languages such as
SQL. SQL string functions are used to obtain various information about the characters, or in this
case, manipulate them. One such function, CONCAT, is commonly used. Review the table below
to learn more about the CONCAT function and its variations.
Dataanalysis
Sometimes, depending on the strings, you will need to add a space character, so your function
should actually be:
Data analysis
The same rule applies when combining three strings together. For example,
SQL functions: This is a comprehensive list of functions to get you started. Click on each
function, where you will learn about the definition, usage, examples, and even be able to
create and run your own query for practice. Try it out for yourself!
SQL Keywords: This is a helpful SQL keywords reference to bookmark as you increase
your knowledge of SQL. This list of keywords are reserved words that you will use as
your need to perform different operations in the database grows.
While this reading went through the basics of each of these functions, there is still more
to learn, and you can even combine your own strings.
1. Practice using CONCAT
2. Practice using CONCAT WS
3. Practice using CONCAT with +
Pro tip: The functions presented in the resources above may be applied in slightly different ways
depending on the database that you are using (e.g. mySQL versus SQL Server). But, the general
description provided for each function will prepare you to customize how you use these functions
as neede