使用group by时如何使用where和having

NoSuchKey