Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to convert date along with handling null value. This query written in Oracle.
Same i want to use in Qlik Script. But, i am getting Error.
Script :
JOININGDATE:
select
CAST(TO_DATE(nvl(JOINDATE,''),'DD/MM/YYYY HH24:MI:SS') AS TIMESTAMP) AS JOIN_DATE
FROM Emp.dbo."Employee"
ERROR :
ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'nvl' is not a recognized built-in function name.
JOININGDATE:
select
CAST(TO_DATE(nvl(JOINDATE,''),'DD/MM/YYYY HH24:MI:SS') AS TIMESTAMP) AS JOIN_DATE
FROM Emp.dbo."Employee"
Hi,
Your error description says - 'nvl' is not a recognized built-in function name in SQL Server. So you need to use "ISNULL()" which is built-in function to handle nulls in SQL Server.
use sql before select
Script :
JOININGDATE:
sql select
CAST(TO_DATE(nvl(JOINDATE,''),'DD/MM/YYYY HH24:MIS') AS TIMESTAMP) AS JOIN_DATE