In SQL Server, if you have a column which has NULLs and instead of nulls, if you want to display ‘Nothing’, what would you do? The following query SELECT CASE Dept_Name WHEN NULL THEN 'Nothing' ELSE Dept_Name END Dept_Name FROM Inventory would still display the nulls and not ‘Nothing’. Workaround: 1> 2> select * from [...]
Related posts:
↧