Skip to content

Commit

Permalink
Unique based on station name and cruise name
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmarsden committed Jun 25, 2021
1 parent 38186c6 commit de9b4e5
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 de9b4e5

Please sign in to comment.