Skip to main content
SQL • LESSON 135

CONCAT

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

Advanced3 Minutes1480 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