Skip to content
Snippets Groups Projects
Commit 55b44f05 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Remove unnecessary params from availability queries

parent d157455b
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,5 @@ WHERE
base_date = (SELECT max(base_date) FROM aggr_availability) AND
($1::text IS NULL OR region = $1::text) AND
($2::text IS NULL OR state = $2::text) AND
($3::text IS NULL OR city = $3::text)
GROUP BY
city;
\ No newline at end of file
city;
......@@ -6,9 +6,6 @@ SELECT
FROM
aggr_availability
WHERE
base_date = (SELECT max(base_date) FROM aggr_availability) AND
($1::text IS NULL OR region = $1::text) AND
($2::text IS NULL OR state = $2::text) AND
($3::text IS NULL OR city = $3::text)
base_date = (SELECT max(base_date) FROM aggr_availability)
GROUP BY
region;
\ No newline at end of file
region;
......@@ -8,7 +8,5 @@ FROM
WHERE
base_date = (SELECT max(base_date) FROM aggr_availability) AND
($1::text IS NULL OR region = $1::text) AND
($2::text IS NULL OR state = $2::text) AND
($3::text IS NULL OR city = $3::text)
GROUP BY
state;
\ No newline at end of file
state;
......@@ -11,4 +11,4 @@ WHERE
($2::text IS NULL OR state = $2::text) AND
($3::text IS NULL OR city = $3::text)
GROUP BY
tc_name;
\ No newline at end of file
tc_name;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment