Complete the code to select the string 'Hello' from the database.
SELECT [1] AS greeting;In SQL, single quotes are used to denote string literals. Double quotes are for identifiers in some databases.
Complete the code to concatenate two strings 'Hello' and 'World' with a space in between.
SELECT 'Hello' [1] ' ' [1] 'World' AS greeting;
In standard SQL, the string concatenation operator is ||.
Fix the error in the code to concatenate 'First' and 'Last' names with a space.
SELECT FirstName [1] ' ' [1] LastName AS FullName FROM Users;
The || operator correctly concatenates strings in standard SQL.
Fill both blanks to select a string with a single quote inside it: O'Reilly.
SELECT [1] AS publisher;To include a single quote inside a string in SQL, double it: O''Reilly.
Fill all three blanks to create a concatenated full name with a comma and space: LastName, FirstName.
SELECT LastName [1] [2] [3] FirstName AS FullName FROM Employees;
Use || to concatenate strings and include the comma and space as a string literal.