Skip to content

Commit

Permalink
Add example query to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jun 19, 2024
1 parent 295ad5a commit ab94bf5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ adminer container for quick inspection. Navigate in your browser to
* Database: `aross`


#### Example query

```sql
select event.*
from event
join station on event.station_id = station.id
where
ST_Within(
station.location,
ST_SetSRID(
ST_GeomFromText('POLYGON ((-159.32130625160698 69.56469019745796, -159.32130625160698 68.08208920517862, -150.17196253090276 68.08208920517862, -150.17196253090276 69.56469019745796, -159.32130625160698 69.56469019745796))'),
4326
)
)
AND event.start_timestamp > '2023-01-01'::date
AND event.end_timestamp < '2023-06-01'::date
;
```


<!-- prettier-ignore-start -->
[actions-badge]: https://github.com/nsidc/aross-stations-db/workflows/CI/badge.svg
[actions-link]: https://github.com/nsidc/aross-stations-db/actions
Expand Down

0 comments on commit ab94bf5

Please sign in to comment.