SELECT CASE WHEN field IS NULL THEN 'Empty' ELSE field END AS field_alias
Or more idiomatic:
SELECT coalesce(field, 'Empty') AS field_alias
More Related Contents:
- Altering a column: null to not null
- How much size “Null” value takes in SQL Server
- SQL Server String Concatenation with Null
- How to get difference of days/months/years (datediff) between two dates?
- How to migrate a PostgreSQL database into a SQLServer one?
- migrate data from MS SQL to PostgreSQL?
- Max Nbr of Months W/ No Activity in Past 12 Months
- Export from SQL Server to Excel
- SQL server query to output the data shown below
- hide/remove header and footer
- How to use a variable for the database name in T-SQL?
- How do you view ALL text from an ntext or nvarchar(max) in SSMS?
- SQL Server: SELECT only the rows with MAX(DATE)
- Create a view with ORDER BY clause
- What does ‘COLLATE SQL_Latin1_General_CP1_CI_AS’ do?
- INSERT INTO vs SELECT INTO
- Possible to store value of one select column and use it for the next one?
- Sorting null values after all others, except special
- How to view transaction logs in SQL Server 2008 [closed]
- Scheduled run of stored procedure on SQL server
- How can I change from SQL Server Windows mode to mixed mode (SQL Server 2008)?
- How can I Insert data into SQL Server using VBNet
- Will GETUTCDATE() return the same value if used twice in the same statement?
- Convert decimal time to hours and minutes
- Create table (structure) from existing table
- Milliseconds wrong when converting from XML to SQL Server datetime
- Using GROUP BY with FIRST_VALUE and LAST_VALUE
- SQL Server 2008 can’t login with newly created user
- What is the difference between Cartesian product and cross join?
- Count number of records returned by group by