Commit e5a2e0f8 authored by Bjarni Pjetursson's avatar Bjarni Pjetursson
Browse files

Update 13-ugyldig-virksomhedstype-paa-enkeltindvindere.sql

parent f6c70bb3
......@@ -3,7 +3,7 @@
Titel: enkeltindvindere
Status: prototype
*/
SELECT kommune AS "Kommune", anlaeg AS "Anlæg", status AS "Status", v95 AS "V95(prioritet)", vt_udfaset AS "Forældet virks.type(prio)", vt_andre AS "Andre Virks.typer(prio)" FROM (
SELECT kommune AS "Kommune", anlaeg AS "Anlæg", status AS "Status", v95 AS "V95(prioritet)", vt_udfaset AS "Forældet virks.type(prio)", vt_andre AS "Andre Virks.typer(prio)", kontrol AS "Kontroltekst", wkt FROM (
SELECT vt.*,
CASE
WHEN (vt_udfaset LIKE '%V04%' OR vt_udfaset LIKE '%V05%') AND v95 IS NULL AND vt_andre IS NULL THEN 'Erstat forældet virksomhedstype med V95 (1 husstand) eller V03 (2-9 husstande)'
......
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