ASDL#37376 -- Rapportages toevoegen

svn path=/Customer/trunk/; revision=30441
This commit is contained in:
Arthur Egberink
2016-08-26 07:16:08 +00:00
parent dd329397aa
commit fbfa08ae7f

View File

@@ -853,14 +853,14 @@ AS
AND BITAND (ins_srtcontroledl_xcp_bits, dsc.mask) <> 0;
-- Groepering om grafiek met percentages te tonen
CREATE VIEW asdl_v_rap_ns_stat_tot (datum, percentage)
CREATE OR REPLACE VIEW asdl_v_rap_ns_stat_tot (datum, percentage)
AS
SELECT datum, ROUND ( (SUM (schoongemaakt) / COUNT ( * )) * 100)
FROM asdl_v_rap_ns_stat
GROUP BY datum;
-- Groepering om grafiek met percentages te tonen per perceel
CREATE VIEW asdl_v_rap_ns_stat_perceel (datum, perceel, percentage)
CREATE OR REPLACE VIEW asdl_v_rap_ns_stat_perceel (datum, perceel, percentage)
AS
SELECT datum, perceel, ROUND ( (SUM (schoongemaakt) / COUNT ( * )) * 100)
FROM asdl_v_rap_ns_stat