I have a points table in my postgresql table.
CREATE TABLE my_points(
gid serial PRIMARY KEY,
created_on TIMESTAMP NOT NULL,
geog geography(POINTZ,4326)
);
So I want to get bounded boxes of updated data which grouped by created_on. The updated datas today are different locations.
For example table data is like this:
gid created_on geog
------------------------------------
1 08/15/2021 10:38:11 (1,2)
2 08/15/2021 10:38:11 (2,2)
3 08/15/2021 10:38:11 (3,2)
4 08/15/2021 11:12:04 (1,2)
5 08/15/2021 11:12:04 (2,4)
In this table there are two groups by date. 08/15/2021 10:38:11 has ids (1,2,3) and 08/15/2021 11:12:04 has ids (4,5
So I need a select query for two bounded boxes to gets grouped by created_on date.
I need a seelct query to find blue square geoemtries.
How can I select this?