Skip to main content
SQL โ€ข LESSON 135

CONCAT

How can we merge first and last names into a full name?

Advancedโฑ 3 Minutesโญ 1480 XP
๐Ÿค” THE QUESTION

How can we merge first and last names into a full name?

๐Ÿ’ก WHAT IS IT?

CONCAT() joins two or more strings together into a single combined string.

๐ŸŽฏ WHAT IS IT USED FOR?

Full name formatting, creating composite keys, formatting postal addresses.

๐Ÿ’ป EXAMPLE
SELECT
CONCAT(first_name, ' ', last_name) AS full_name
FROM employees;

๐ŸŽฏ Mission Objectives

Practice typing production-grade SQL code for CONCAT.

  • โœ“ CONCAT() function
  • โœ“ String merging
  • โœ“ Full name generation
  • โœ“ Text concatenation