wecisecode hai 5 días
pai
achega
340570cf5c

+ 30 - 0
odbctest/mql/uino/063countdistinct.mql

@@ -0,0 +1,30 @@
+
+
+-- MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
+--     -[:person_to_tech_duty*1..1]->(tech_duty:/univ_demo/tech_duty WHERE last_flag = '是' and duty_level='副高级') 
+--     RETURN person.account AS "teacher_account", tech_duty.duty_level AS "tech_duty_level"
+-- /**
+-- output()
+-- **/
+-- ;
+    
+    
+SELECT temp01.tech_duty_level AS "专业技术职务级别", 
+count(distinct temp01.teacher_account) AS "专任教师人数" FROM (
+    MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
+    -[:person_to_tech_duty*1..1]->(tech_duty:/univ_demo/tech_duty WHERE last_flag = '是') 
+    RETURN person.account AS "teacher_account", tech_duty.duty_level AS "tech_duty_level"
+) temp01 
+GROUP BY temp01."tech_duty_level" 
+order by "专任教师人数"
+LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+match("专业技术职务级别", "初级", "专任教师人数", 3)
+match("专业技术职务级别", "无", "专任教师人数", 7)
+match("专业技术职务级别", "未定级", "专任教师人数", 19)
+match("专业技术职务级别", "中级", "专任教师人数", 274)
+match("专业技术职务级别", "正高级", "专任教师人数", 316)
+match("专业技术职务级别", "副高级", "专任教师人数", 356)
+**/
+;

+ 7 - 0
odbctest/mql/uino/064distinctfunction.mql

@@ -0,0 +1,7 @@
+
+SELECT distinct( temp01.teacher_unit ) AS "师资归属单位" FROM (SELECT person.sz_g AS "teacher_unit" FROM /univ_demo/person person WHERE person.status = '在职' LIMIT 0, 500000) temp01 LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+**/
+;
+

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 25 - 0
odbctest/mql/uino/065datefiltervalue.mql


+ 17 - 0
odbctest/mql/uino/066datefiltervalue.mql

@@ -0,0 +1,17 @@
+
+
+
+
+SELECT materialdocument.postingdate,
+materialdocument.storagelocationid AS "storagelocationid", 
+materialdocument.shorttext AS "shorttext", 
+materialdocument.quantity AS "quantity", 
+materialdocument.direction AS "direction", materialdocument.unitid AS "unitid", 
+materialdocument.oid AS "_erp_demo_materialdocument_oid_0" 
+FROM /erp_demo/materialdocument materialdocument 
+WHERE materialdocument.postingdate <= 1.7732448e+12 AND materialdocument.isreturnitem != 'X' 
+LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+**/;
+

+ 54 - 0
odbctest/mql/uino/067countdistinct.mql

@@ -0,0 +1,54 @@
+
+
+MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
+-[:person_to_tech_duty*1..1]->
+(tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是') 
+RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account" 
+INTO /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 WITH TIMEOUT = 6m
+;
+
+
+SELECT temp01.person_account
+FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
+/**
+output()
+**/
+;
+
+SELECT count(temp01.person_account) AS "senior_teacher_count" 
+FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
+/**
+output()
+**/
+;
+
+SELECT count(DISTINCT temp01.person_account) AS "senior_teacher_count" 
+FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
+/**
+output()
+**/
+;
+
+
+SELECT count(temp01.person_account) AS "senior_teacher_count" FROM (
+    MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
+    -[:person_to_tech_duty*1..1]->
+    (tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是') 
+    RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account"
+) temp01 LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+**/
+;
+
+SELECT count(DISTINCT temp01.person_account) AS "senior_teacher_count" FROM (
+    MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
+    -[:person_to_tech_duty*1..1]->
+    (tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是') 
+    RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account"
+) temp01 LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+**/
+;
+

odbctest/mql/uino/068.mql → odbctest/mql/uino/068bucketisnil.mql