Skip to content
Snippets Groups Projects
Commit 80d1964c authored by lgtg20's avatar lgtg20
Browse files

Fix: ano_ref as year on query

parent 3b74666e
No related branches found
No related tags found
4 merge requests!449Homologa,!444dev -> hom,!440New indicators,!439Issue 935
......@@ -318,7 +318,7 @@ adjustedLiquidFrequency.get('/', rqf.parse(), (req, res, next) => {
// Query Principal
let mainQuery = squel.select()
.from(totalApoioFreq, "total_apoio_freq")
.field("total_apoio_freq.ano_ref")
.field("total_apoio_freq.ano_ref", "year")
.field("total_apoio_freq.apoio_frequencia_ajustada", "age_range_all_id")
.field("ROUND((total_apoio_freq.total_freq / total_apoio_freq.total) * 100, 1)", "total")
.where("total_apoio_freq.ano_ref >= 2019")
......
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