TO_CHAR
je Oracle. V SQL Server použijte 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
je Oracle. V SQL Server použijte 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