Skip to content

Commit

Permalink
remove trip month and survey info for sample sql because it clashes w…
Browse files Browse the repository at this point in the history
…ith the version in get survey sets
  • Loading branch information
ecophilina committed Aug 3, 2023
1 parent 888a50c commit 4808b39
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions inst/sql/get-survey-samples2.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
SELECT TRIP_START_DATE,
SM.FISHING_EVENT_ID,
YEAR(TRIP_START_DATE) AS YEAR,
MONTH(TRIP_START_DATE) AS MONTH,
GEAR_CODE AS GEAR,
S.SURVEY_SERIES_ID,
CASE WHEN SURVEY_SERIES_ALT_DESC IS NULL THEN SURVEY_SERIES_TYPE_ALT_DESC
WHEN SURVEY_SERIES_TYPE_ALT_DESC IS NULL THEN SURVEY_SERIES_ALT_DESC
WHEN SURVEY_SERIES_TYPE_ALT_DESC = 'OTHER' THEN SURVEY_SERIES_ALT_DESC
ELSE (SURVEY_SERIES_TYPE_ALT_DESC + ' ' + SURVEY_SERIES_ALT_DESC)
END AS SURVEY_ABBREV,
SURVEY_SERIES_DESC,
TS.SURVEY_ID,
SM.MAJOR_STAT_AREA_CODE,
MSA.MAJOR_STAT_AREA_NAME,
Expand Down Expand Up @@ -87,4 +80,4 @@ SM.SAMPLE_TYPE_CODE IN (1, 2, 6, 7, 8) AND
-- insert species here
-- insert ssid here
-- insert major here
ORDER BY SURVEY_ABBREV, YEAR(TRIP_START_DATE)
ORDER BY S.SURVEY_SERIES_ID, YEAR(TRIP_START_DATE)

0 comments on commit 4808b39

Please sign in to comment.