Complete the code to concatenate first_name and last_name with a space in between.
SELECT first_name [1] ' ' [2] last_name AS full_name FROM employees;
In PostgreSQL, the concatenation operator is ||. You use it to join strings together.
Complete the code to concatenate city and country with a comma and space between.
SELECT city [1] ', ' [2] country AS location FROM locations;
The || operator concatenates strings in PostgreSQL. Here it joins city, a comma and space, and country.
Fix the error in the code to concatenate first_name and last_name with a dash between.
SELECT first_name [1] '-' [2] last_name AS full_name FROM users;
PostgreSQL uses || to concatenate strings. The + operator causes an error here.
Fill both blanks to concatenate street and postal_code with a comma and space between.
SELECT street [1] ', ' [2] postal_code AS address FROM addresses;
Use || to concatenate strings in PostgreSQL. Both blanks need this operator.
Fill all four blanks to concatenate title, first_name, and last_name with spaces between.
SELECT title [1] ' ' [2] first_name [3] ' ' [4] last_name AS full_name FROM staff;
Use || operator for all concatenations to join title, first_name, and last_name with spaces.