Skip to content

FULL

SELECT
CONCAT_WS(' ', FirstName, LastName) AS FullName
FROM
Employees;
+-------------------+
| FullName |
+-------------------+
| John Doe |
| Jane Smith |
| Mary Johnson |
| James Brown |
+-------------------+

In the code given, the CONCAT_WS function was used to concatenate the FirstName and LastName columns from the Employees table with a space separating them. The result was stored in a new column called FullName. The output included the table showing the full names of employees.