for ETL TESTING:
when transforming from source table to destination or war house,
if a column EMPLOYEENAME
is null
, replace it with ""
and truncate
to 50 characters in sql server 2014
i got a query to replace null with ""
. but i have to truncate the data length if data is null
.
SELECT
[EmployeeID],
ISNULL( [Employeename],'""') AS [Employeename]
FROM [dbo].[Employees]