Answers for "replace true and false values in sql"

SQL
1

replace null in sql

CASE WHEN ColumnName IS NULL THEN 'anyText' 
ELSE ColumnName END 
---------EXAMPLE --------------------------
SELECT E.Name as Employee, CASE WHEN M.Name IS NULL THEN 'No Manager' 
   ELSE M.Name END as Manager
FROM  tblEmployee E
LEFT JOIN tblEmployee M
ON   E.ManagerID = M.EmployeeID
Posted by: Guest on August-20-2021

Code answers related to "replace true and false values in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language