Hi Wahida,
Try listing the names of the columns you are grouping on in the "Group By Columns" text box, separated by commas. In your first query, that would be:
Population_by_MUKIM.MUKIM
and in your second:
Population_by_MUKIM.MUKIM, POI.DESCRIPTION
------------------------------
James Nolet
GIS Manager
Caf Consulting
Mentone office, VIC, Australia
------------------------------
Original Message:
Sent: 11-02-2023 03:15
From: Wahida Latif
Subject: SQL: Calculate count of object within each subdistrict based on object's category
Hi All.
I want to calculate the count of Point of Interest within subdistricts based on PoI's category.
There are 17 subdistricts contains PoI.
However, when I group by PoI's category, the result shows only 7 subdistricts. Another 10 is not counted.
Is there any issues with my SQL? Thank you.
------------------------------
Wahida Latif
Map Information Solutions Sdn Bhd
KUALA LUMPUR
------------------------------