100match.mql 600 B

12345678910111213141516171819202122232425262728293031323334353637
  1. -- match ('biz:*')-[*10]->(h) return h.name
  2. /**
  3. output()
  4. **/
  5. ;
  6. -- match (p:'biz:*')-[*10]->(h) return p.name as "业务", p.vtime as "业务时间", h.name as "合同", h.vtime as "签约时间" into temp0001
  7. -- ;
  8. -- match (p:'biz:*')-[*10]->(h) return p.name as "业务", _.path as "路径", h.name as "合同"
  9. /**
  10. output()
  11. **/
  12. ;
  13. match (p:'biz:*')-[*10]->(h) return p.name as "业务", _.path as "路径", h.name as "合同" into temp0001
  14. ;
  15. select * from temp0001
  16. /**
  17. output()
  18. **/
  19. ;
  20. select 业务, count(t.合同) from temp0001 t group by 业务 order by 业务 desc
  21. /**
  22. output()
  23. **/
  24. ;