ASDL#37376 -- Rapportages toevoegen
svn path=/Customer/trunk/; revision=30441
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user