We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeec070 commit 8f52fedCopy full SHA for 8f52fed
src/optim-step4-api.sql
@@ -292,7 +292,23 @@ FROM (
292
) t
293
;
294
295
+--DROP MATERIALIZED VIEW mvwjurisdiction_synonym;
296
CREATE MATERIALIZED VIEW mvwjurisdiction_synonym AS
297
+ (
298
+ -- identidade
299
+ SELECT isolabel_ext AS synonym, isolabel_ext AS isolabel_ext
300
+ FROM optim.jurisdiction
301
+ )
302
+ UNION ALL
303
304
+ -- não deve retornar abbrev repetidos
305
+ SELECT abbrev, MAX(isolabel_ext)
306
+ FROM optim.jurisdiction_abbrev_option
307
+ WHERE selected IS TRUE
308
+ GROUP BY abbrev
309
+ HAVING count(*) = 1
310
311
312
(
313
-- co unique names
314
-- eg.: CO-Medellin
0 commit comments