I have one table ('TABLE A') with points of Data divided by Latitude, Longitude & Hour. On the other hand I have another table ('TABLE B') with County names.
How do I count points (from 'TABLE A') within counties ('TABLE B') but grouping them or maintaining hour segmentations?
Best Answer
You can use a virtual layer or execute SQL from processing toolbox with this query:
where
h
is the name of your hour field. Note that this will return no row for empty counts. So if there is no point with hour 3, you will get no row for this hour.The result will be duplicated polygons with one row for each hour and count that exists at least once.