Skip to content

Commit

Permalink
Fix_syntax_IS_NOT_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ponceta authored Aug 22, 2024
1 parent e14a93e commit f729e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swmm_views/08_vw_swmm_outfalls.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ SELECT
coalesce(wn.bottom_level,0) as InvertElev,
-- 'FREE'::varchar as Type,
CASE
WHEN waterlevel_hydraulic NOT IS NULL THEN 'FIXED'
WHEN waterlevel_hydraulic IS NOT NULL THEN 'FIXED'
ELSE 'FREE'
END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations
-- 0 as StageData,
CASE
WHEN waterlevel_hydraulic NOT IS NULL THEN waterlevel_hydraulic
WHEN waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic
ELSE 0
END as StageData,
'NO'::varchar as tide_gate,
Expand Down Expand Up @@ -46,12 +46,12 @@ SELECT
coalesce(wn.bottom_level,0) as InvertElev,
-- 'FREE'::varchar as Type,
CASE
WHEN waterlevel_hydraulic NOT IS NULL THEN 'FIXED'
WHEN waterlevel_hydraulic IS NOT NULL THEN 'FIXED'
ELSE 'FREE'
END as Type, -- Type of outfall boundary condition: FREE: outfall stage determined by minimum of critical flow depth and normal flow depth in the connecting conduit. NORMAL: outfall stage based on normal flow depth in the connecting conduit. FIXED: outfall stage set to a fixed value. TIDAL: outfall stage given by a table of tide elevation versus time of day. TIMESERIES: outfall stage supplied from a time series of elevations
-- 0 as StageData,
CASE
WHEN waterlevel_hydraulic NOT IS NULL THEN waterlevel_hydraulic
WHEN waterlevel_hydraulic IS NOT NULL THEN waterlevel_hydraulic
ELSE 0
END as StageData,
'NO'::varchar as tide_gate,
Expand Down

0 comments on commit f729e87

Please sign in to comment.