Commit 560b8f66 authored by Charlotte Toftemann Thomsen's avatar Charlotte Toftemann Thomsen
Browse files

Update 13-enkeltindvindere.sql

parent 8a08b660
......@@ -7,6 +7,7 @@ SELECT * FROM (
SELECT p.municipalityno2007 kommunenr,
m.name kommunenavn,
p.plantid||' - '||p.plantname AS anlaeg,
st.longtext status,
(SELECT LISTAGG(companytype||'('||companytypeno||')', ',') WITHIN GROUP (ORDER BY companytypeno) FROM drwplantcompanytype WHERE p.plantid = plantid AND companytype IN ('V95') GROUP BY plantid) "V95(PRIORITET)",
(SELECT LISTAGG(companytype||'('||companytypeno||')', ',') WITHIN GROUP (ORDER BY companytypeno) FROM drwplantcompanytype WHERE p.plantid = plantid AND companytype IN ('M42','V04','V05','V06','V07') GROUP BY plantid) "FORÆLDET VIRKSOMHEDSTYPE(PRIORITET)",
(SELECT LISTAGG(companytype||'('||companytypeno||')', ',') WITHIN GROUP (ORDER BY companytypeno) FROM drwplantcompanytype WHERE p.plantid = plantid AND companytype NOT IN ('V95','M42','V04','V05','V06','V07') GROUP BY plantid) "ANDRE VIRKSOMHEDSTYPER(PRIORITET)"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment