forked from Minecraft/Stonks
parent
24d33afd59
commit
6b3f87c401
|
@ -145,9 +145,9 @@ object StatisticsImporter {
|
|||
GROUP BY Live."Type", Live."Name", Live."PlayerId"
|
||||
) as LiveMax
|
||||
LEFT JOIN AGGREGATESTATISTICS as Agg
|
||||
ON Live."Type" = Agg."Type"
|
||||
GROUP BY Live."Type"
|
||||
HAVING sum(Live."Value") <> max(Agg."Value") OR max(Agg."Value") IS NULL;
|
||||
ON LiveMax."Type" = Agg."Type"
|
||||
GROUP BY LiveMax."Type"
|
||||
HAVING sum(LiveMax."Value") <> max(Agg."Value") OR max(Agg."Value") IS NULL;
|
||||
|
||||
INSERT INTO AGGREGATESTATISTICS ("Type", "Name", "Timestamp", "Value")
|
||||
SELECT LiveMax."Type",
|
||||
|
|
Loading…
Reference in New Issue