601.count distinct.mql 571 B

123456789101112131415161718192021222324252627282930313233343536
  1. SELECT * from /hxyy/floor
  2. /**
  3. output()
  4. **/
  5. ;
  6. SELECT floor1.affiliated_building AS "affiliated_building" INTO /t11021 FROM /hxyy/floor floor1 WHERE floor_number > '5' LIMIT 0, 200
  7. ;
  8. {
  9. "sql":"SELECT * from /t11021"
  10. }
  11. /**
  12. output()
  13. **/
  14. ;
  15. {
  16. "sql":"SELECT count(DISTINCT t11021.affiliated_building) AS \"五楼以上的建筑个数\" FROM /t11021 t11021 LIMIT 0, 20000"
  17. }
  18. /**
  19. output()
  20. **/
  21. ;
  22. {
  23. "sql":"SELECT count(DISTINCT t11021.affiliated_building) AS \"五楼以上的建筑个数\" FROM T_t11021 t11021 LIMIT 0, 20000",
  24. "class":["/t11021"]
  25. }
  26. /**
  27. output()
  28. **/
  29. ;