Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

api.stats_moorages_away_view

Description

Statistics Moorages Time Spent Away web view

Table Definition
CREATE VIEW stats_moorages_away_view AS (
 SELECT sa.description,
    sum(m.stays_sum_duration) AS time_spent_away_by
   FROM api.moorage_view m,
    api.stays_at sa
  WHERE ((m.home IS FALSE) AND (m.default_stay_id = sa.stay_code))
  GROUP BY m.default_stay_id, sa.description
  ORDER BY m.default_stay_id
)

Columns

NameTypeDefaultNullable
descriptiontexttrue
time_spent_away_byintervaltrue

Referenced Tables

NameColumnsCommentType
api.moorage_view18Moorage details web viewVIEW

Relations

erDiagram


"api.stats_moorages_away_view" {
  text description ""
  interval time_spent_away_by ""
}

Generated by tbls