如何将以下查询迁移到 mssql 服务器中,我在此迁移中遭受了很多痛苦.. 帮助将不胜感激..
select FEES,
DECODE(SUBCOM_TYPE ,'S','SPECIAL COMMISSION','D','DEFAULT COMMISSION') AS SUBCOM_TYPE,
TO_CHAR(FROMDATE,'DD-MON-YYYY') AS FROMDATE,
TO_CHAR(TODATE,'DD-MON-YYYY') AS TODATE,
TO_CHAR(ADDEDDATE,'DD-MON-YYYY') AS ADDEDDATE,
USER_CODE from COMMISSION
where INST_ID = 'ABC' AND MASTERCODE='106'