403.orderby全面测试.mql 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. MATCH (budget:/birddata/budget)-[:budget_link_to_event_event_event_id*1..1]->(event:/birddata/event WHERE event_name = 'April Speaker')
  2. RETURN budget.category AS "category", budget.amount AS "amount" INTO /t0_189295;
  3. SELECT t0.amount AS "t0.category", t0.category AS "Budget Category", t0.amount AS "Amount Budgeted" FROM /t0_189295 t0 ORDER BY t0."amount" ASC LIMIT 0, 20000
  4. /**
  5. output()
  6. metainfo()
  7. **/
  8. ;
  9. SELECT t0.amount AS "t0.category", t0.category AS "Budget Category", t0.amount AS "Amount Budgeted" FROM /t0_189295 t0 ORDER BY "Amount Budgeted" ASC LIMIT 0, 20000
  10. /**
  11. output()
  12. metainfo()
  13. **/
  14. ;
  15. SELECT room.using_department AS "using_department" INTO /t0 FROM /hxyy/room room LIMIT 0, 20000
  16. /**
  17. output()
  18. metainfo()
  19. **/
  20. ;
  21. SELECT t0.using_department AS "使用部门" FROM /t0 where t0.using_department is null
  22. /**
  23. output()
  24. **/
  25. ;
  26. SELECT t0.using_department AS "使用部门", count(t0.using_department) AS "房间数量", count(*) AS "房间数量x" FROM /t0 t0 GROUP BY t0."using_department" ORDER BY "房间数量" DeSC LIMIT 0, 20000
  27. /**
  28. output()
  29. metainfo()
  30. **/
  31. ;