TO_CHAR
est Oracle. Dans SQL Server, utilisez CONVERT
:
SELECT C_Debt_Payment.AD_Client_ID,
(CASE WHEN C_Debt_Payment.AD_Client_ID IS NULL THEN '' ELSE COALESCE(CONVERT(varchar(20),table1.name),'') END) AS AD_Client_IDR
TO_CHAR
est Oracle. Dans SQL Server, utilisez CONVERT
:
SELECT C_Debt_Payment.AD_Client_ID,
(CASE WHEN C_Debt_Payment.AD_Client_ID IS NULL THEN '' ELSE COALESCE(CONVERT(varchar(20),table1.name),'') END) AS AD_Client_IDR