|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
SELECT AGENTNAME, ( DCODE(BIRTHDAY,NULL,TO_DATE(NULL,'MMDDYYYY'),
TO_DATE(TO_CHAR(TRUNC(BIRTHDAY,'MM'),'MM')||'1900','MMYYYY')) ),
( DECODE(BIRTHDAY,NULL,TO_DATE(NULL,'MMDDYYYY'),
TO_DATE(TO_CHAR(TRUNC(BIRTHDAY,'DD'),'DD')||'190001','DDYYYYMM')) )
FROM DISVDATA.SALE20070425
WHERE ( ( DECODE(BIRTHDAY,NULL,TO_DATE(NULL,'MMDDYYYY'),
TO_DATE(TO_CHAR(TRUNC(BIRTHDAY,'MM'),'MM')||'1900','MMYYYY')) )
= TO_DATE('19000501','YYYYMMDD') AND
( DECODE(BIRTHDAY,NULL,TO_DATE(NULL,'MMDDYYYY'),
TO_DATE(TO_CHAR(TRUNC(BIRTHDAY,'DD'),'DD')||'190001','DDYYYYMM')) )
= TO_DATE('19000121','YYYYMMDD') )
; |
|