CASE WHEN last_name IS NULL THEN '' ELSE ' '+last_name END
More Related Contents:
- SQl CASE Statement
- How to calculate age in T-SQL with years, months, and days
- Convert multiple rows into one with comma as separator [duplicate]
- How to convert Seconds to HH:MM:SS using T-SQL
- T-SQL: Selecting rows to delete via joins
- Combining INSERT INTO and WITH/CTE
- T-SQL Pivot? Possibility of creating table columns from row values
- What is a “batch”, and why is GO used?
- Getting the minimum of two values in SQL
- T-SQL loop over query results
- How to insert default values in SQL table?
- How to Round a Time in T-SQL
- How to convert a “dd/mm/yyyy” string to datetime in SQL Server?
- t-sql get all dates between 2 dates [duplicate]
- Check if a varchar is a number (TSQL)
- How to pivot table with T-SQL?
- Extract the first word of a string in a SQL Server query
- Testing for inequality in T-SQL
- Can I use the MERGE statement in SQL Server 2005?
- Replace a newline in TSQL
- T-SQL – function with default parameters
- Search for one value in any column of any table inside a database
- How to use an Alias in a Calculation for Another Field
- Using a cursor with dynamic SQL in a stored procedure
- Truncate Datetime to Second (Remove Milliseconds) in T-SQL
- Convert unix epoch timestamp to TSQL datetime
- T-SQL Between Dates Confusion
- Poor Man’s SQL Pivot. List Questions as Columns and Answers per User in one row
- String.Format like functionality in T-SQL?
- How to parse string into date?