Question: how to do nvl in sql server?
Answer: NVL Function - Replace NULL - Oracle to SQL Server Migration. In Oracle, NVL(exp1, exp2) function accepts 2 expressions (parameters), and returns the first expression if it is not NULL, otherwise NVL returns the second expression. In SQL Server, you can use ISNULL(exp1, exp2) function.