Skip to content

Commit

Permalink
Merge pull request #3 from SIOS-Svalbard/uniqueStations
Browse files Browse the repository at this point in the history
Unique based on station name and cruise name
  • Loading branch information
lhmarsden authored Jun 25, 2021
2 parents 38186c6 + de9b4e5 commit edfa944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/unique_stations.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--ACCESS=access content
select stationname, round(avg(decimallatitude)::numeric,4) as avglat, round(avg(decimallongitude)::numeric,4) as avglong , round(avg(bottomdepthinmeters)::numeric,1) as avgdepth, stationname as sname from aen group by stationname order by stationname;
select uniqueStation, round(avg(decimallatitude)::numeric,4) as avglat, round(avg(decimallongitude)::numeric,4) as avglong , round(avg(bottomdepthinmeters)::numeric,1) as avgdepth, uniqueStation as sname from aen group by uniqueStation order by uniqueStation;

0 comments on commit edfa944

Please sign in to comment.