Commit d557e54e authored by Lars Arnskov Olsen's avatar Lars Arnskov Olsen
Browse files

Update 04-virksomhed-formaal-anvendelse-tjek.sql - user added

parent 5e5afe3b
......@@ -18,7 +18,8 @@ SELECT
'https://data.geus.dk/tabellerkoder/tabeller.html?tablename=DRWPLANTINTAKE&boreholeid=eq.'||bo.boreholeid AS detaljer_indtag,
CASE WHEN bo.xutm32euref89+bo.yutm32euref89+anl.xutm32euref89+anl.yutm32euref89>0 THEN
'LINESTRING ('||TRIM(TO_CHAR(ROUND(bo.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(bo.yutm32euref89),'999999999990'))||','
||TRIM(TO_CHAR(ROUND(anl.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(anl.yutm32euref89),'999999999990'))||')' END AS wkt
||TRIM(TO_CHAR(ROUND(anl.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(anl.yutm32euref89),'999999999990'))||')' END AS wkt,
NVL(MAX(REPLACE(ia.updateuser,'DATAVASK',NULL)),MAX(REPLACE(ia.insertuser,'DATAVASK',NULL))) AS eksempel_bruger
FROM drwplant anl /* Anlaeg https://data.geus.dk/tabellerkoder/?tablename=DRWPLANT */
LEFT JOIN code_808 kl ON anl.municipalityno2007 = kl.code /* Kommune https://data.geus.dk/tabellerkoder/koder.html?codetype=808 */
LEFT JOIN code_741 ifl ON anl.vrrpurpose = ifl.code /* Indvindingsformaal https://data.geus.dk/tabellerkoder/koder.html?codetype=741 */
......
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