097.mql 492 B

1234567891011121314151617181920212223242526272829
  1. select count(distinct model),model FROM
  2. /m3event/entity/node
  3. group by model
  4. /**
  5. output()
  6. **/
  7. ;
  8. select count(distinct model),model FROM
  9. (SELECT * FROM /m3event/entity/node)
  10. group by model
  11. /**
  12. output()
  13. **/
  14. ;
  15. select count(*), aa.model as "中文" from /m3event/entity/node aa
  16. group by aa.model order by "中文" desc /**output()**/;
  17. select count(*), aa.model as "中文" from (
  18. SELECT * FROM /m3event/entity/node) aa
  19. group by aa.model order by "中文" desc /**output()**/;