Commit 882a94ea authored by Lars Arnskov Olsen's avatar Lars Arnskov Olsen
Browse files

Update 01-anlaeg-med-flere-tilladelser-dags-dato.sql - user added

parent 4302665a
......@@ -12,7 +12,8 @@ SELECT
'https://data.geus.dk/JupiterWWW/anlaeg.jsp?anlaegid='||p.plantid AS www,
'https://data.geus.dk/tabellerkoder/tabeller.html?tablename=DRWPLANT&plantid=eq.'||p.plantid AS detaljer_anlaeg,
'https://data.geus.dk/tabellerkoder/tabeller.html?tablename=CATCHPERM&order=startdate&plantid=eq.'||p.plantid AS detaljer_tilladelser,
CASE WHEN p.xutm32euref89+p.yutm32euref89>0 THEN 'POINT ('||TRIM(TO_CHAR(ROUND(p.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(p.yutm32euref89),'999999999990'))||')' END AS wkt
CASE WHEN p.xutm32euref89+p.yutm32euref89>0 THEN 'POINT ('||TRIM(TO_CHAR(ROUND(p.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(p.yutm32euref89),'999999999990'))||')' END AS wkt,
NVL(MAX(REPLACE(cp.updateuser,'DATAVASK',NULL)),MAX(REPLACE(cp.insertuser,'DATAVASK',NULL))) AS eksempel_bruger
FROM drwplant p
LEFT JOIN code_808 kl /* Kommune https://data.geus.dk/tabellerkoder/koder.html?codetype=808 */
ON p.municipalityno2007 = kl.code
......
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