Skip to content

Commit

Permalink
Merge pull request #15 from davidmsibley/reachDetailFix
Browse files Browse the repository at this point in the history
setting up searchable station as both short name and nwis site no
  • Loading branch information
David M Sibley committed Apr 24, 2015
2 parents e53db9b + 37499f1 commit ad36fbb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
<include refid="columns"/>
FROM
(SELECT DISTINCT
(SELECT NWIS_SITE_NO FROM SITE_STAR WHERE SITE_STAR.SITE_ID = SITE_ID_UP) UPSTREAM_STATION,
(SELECT (CASE
WHEN NWIS_SITE_NO IS NOT NULL
THEN NWIS_SITE_NO
ELSE SHORT_NAME
END) FROM SITE_STAR WHERE SITE_STAR.SITE_ID = SITE_ID_UP) UPSTREAM_STATION,
(SELECT NAME FROM GROUP_NAME WHERE GROUP_NAME.GROUP_ID = RTD.REACH_GROUP) REACH_GROUP,
(SELECT NAME FROM GROUP_NAME WHERE GROUP_NAME.GROUP_ID = RTD.MAJOR_GROUP) MAJOR_GROUP,
(SELECT (
Expand Down

0 comments on commit ad36fbb

Please sign in to comment.