摘要: SELECT DEPARTMENT_ID, LAST_NAME, SALARY, NTILE(5) OVER(PARTITION BY DEPARTMENT_ID ORDER BY SALARY DESC) AS QUARTILE FROM EMPLOYEES WHERE DEPARTMENT_ID 阅读全文
posted @ 2014-12-20 23:01 智能先行者 阅读(293) 评论(0) 推荐(0) 编辑
摘要: AVG *CORR *COUNT *COVAR_POP *COVAR_SAMP *CUME_DISTDENSE_RANKFIRSTFIRST_VALUE *LAGLASTLAST_VALUE *LEADLISTAGGMAX *MIN *NTH_VALUE *NTILEPERCENT_RANKPERC 阅读全文
posted @ 2014-12-20 21:59 智能先行者 阅读(170) 评论(0) 推荐(0) 编辑
摘要: create sequence seq_test start with 3 increment by 1 minvalue 1 --范围-(1027 -1) maxvalue 999999999999999999999999999 ; --范围1028-1 先 seq_test.nextval ,后 阅读全文
posted @ 2014-12-20 21:44 智能先行者 阅读(452) 评论(0) 推荐(0) 编辑
摘要: ALL If you specify ALL, the default value, then the database evaluates each WHEN clause regardless of the results of the evaluation of any other WHEN 阅读全文
posted @ 2014-12-20 20:20 智能先行者 阅读(360) 评论(0) 推荐(0) 编辑
摘要: TRUNCATE TABLE [schema.] table [ {PRESERVE | PURGE} MATERIALIZED VIEW LOG ] [ {DROP [ ALL ] | REUSE} STORAGE ] ; STORAGE Clauses The STORAGE clauses l 阅读全文
posted @ 2014-12-20 14:40 智能先行者 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: CREATE [ SHARED ] [ PUBLIC ] DATABASE LINK dblink [ CONNECT TO { CURRENT_USER | user IDENTIFIED BY password [ dblink_authentication ] } | dblink_authe 阅读全文
posted @ 2014-12-20 13:39 智能先行者 阅读(490) 评论(0) 推荐(0) 编辑