mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 19:27:49 +00:00
Fix SQL vquery
This commit is contained in:
@@ -838,7 +838,7 @@ CREATE VIEW api.stay_view AS -- TODO missing arrival/departured from
|
|||||||
(s.departed-s.arrived) AS Duration,
|
(s.departed-s.arrived) AS Duration,
|
||||||
sa.description AS "Stayed at",
|
sa.description AS "Stayed at",
|
||||||
s.arrived AS "Arrival Time",
|
s.arrived AS "Arrival Time",
|
||||||
s.departed AS "Arrival Time",
|
s.departed AS "Departure Time",
|
||||||
s.notes AS "Notes"
|
s.notes AS "Notes"
|
||||||
FROM api.stays s, api.stays_at sa
|
FROM api.stays s, api.stays_at sa
|
||||||
WHERE departed is not null
|
WHERE departed is not null
|
||||||
@@ -897,7 +897,7 @@ CREATE OR REPLACE VIEW api.moorage_view AS -- TODO
|
|||||||
EXTRACT(DAY FROM justify_hours ( m.stay_duration )) AS "Total Stay",
|
EXTRACT(DAY FROM justify_hours ( m.stay_duration )) AS "Total Stay",
|
||||||
m.reference_count AS "Arrivals & Departures",
|
m.reference_count AS "Arrivals & Departures",
|
||||||
m.notes,
|
m.notes,
|
||||||
m.geog,
|
m.geog
|
||||||
FROM api.moorages m
|
FROM api.moorages m
|
||||||
WHERE m.name is not null;
|
WHERE m.name is not null;
|
||||||
-- Description
|
-- Description
|
||||||
|
Reference in New Issue
Block a user