Start here
How to Merge Two Columns in SQL Server
Learn how to merge two columns in SQL Server with +, CONCAT() and CONCAT_WS(), handle NULLs and spacing, and avoid common type errors in your queries.
Writing SQL
Concatenating columns, the MERGE command and joining tables that share column names.
Start here
Learn how to merge two columns in SQL Server with +, CONCAT() and CONCAT_WS(), handle NULLs and spacing, and avoid common type errors in your queries.
Combine two columns into one by concatenating their text or stacking their rows. Examples for SQL Server, plus how to handle NULLs and numbers.
Join two tables that share column names by qualifying each column with a table alias and an ON clause. Also covers duplicate columns and errors.
The MERGE statement inserts, updates and deletes rows by matching a source table to a target. Syntax, a worked example and common errors to avoid.
The || operator joins strings in standard SQL. Here is which databases support it, how it handles NULL values, and how it works in SQL Server.
Related topics