Skip to content

Commit

Permalink
#868, #879 rename atr filtered view
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwol committed Jul 26, 2024
1 parent 80525a2 commit f408a60
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DROP VIEW miovision_api.miovision_15min_atr_filtered;
CREATE VIEW miovision_api.miovision_15min_atr_filtered AS (
DROP VIEW miovision_api.volumes_15min_atr_filtered;
CREATE VIEW miovision_api.volumes_15min_atr_filtered AS (

--entries
SELECT
Expand Down Expand Up @@ -40,7 +40,7 @@ CREATE VIEW miovision_api.miovision_15min_atr_filtered AS (

--test: 0.2 s with primary key
SELECT *
FROM miovision_api.miovision_15min_atr_filtered
FROM miovision_api.volumes_15min_atr_filtered
WHERE
intersection_uid = 6
AND classification_uid = 1
Expand All @@ -56,7 +56,7 @@ SELECT
volumes.dir,
classifications.classification,
SUM(volumes.volume) AS volume
FROM miovision_api.miovision_15min_atr_filtered AS volumes
FROM miovision_api.volumes_15min_atr_filtered AS volumes
INNER JOIN miovision_api.classifications USING (classification_uid)
WHERE
volumes.classification_uid NOT IN (2, 7)
Expand Down

0 comments on commit f408a60

Please sign in to comment.