Commit 5e5afe3b authored by Lars Arnskov Olsen's avatar Lars Arnskov Olsen
Browse files

Update 03-indtag-med-flere-registreringer-dags-dato.sql - user added

parent 3f4fd926
......@@ -13,7 +13,8 @@ SELECT
'https://data.geus.dk/JupiterWWW/borerapport.jsp?borid='||bo.boreholeid||'#Indvindingsanl%C3%A6g' AS www,
'https://data.geus.dk/tabellerkoder/tabeller.html?tablename=BOREHOLE&boreholeid=eq.'||bo.boreholeid AS detaljer_boring,
'https://data.geus.dk/tabellerkoder/tabeller.html?tablename=DRWPLANTINTAKE&boreholeid=eq.'||bo.boreholeid AS detaljer_indtag,
CASE WHEN bo.xutm32euref89+bo.yutm32euref89>0 THEN 'POINT ('||TRIM(TO_CHAR(ROUND(bo.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(bo.yutm32euref89),'999999999990'))||')' END AS wkt
CASE WHEN bo.xutm32euref89+bo.yutm32euref89>0 THEN 'POINT ('||TRIM(TO_CHAR(ROUND(bo.xutm32euref89),'999999999990'))||' '||TRIM(TO_CHAR(ROUND(bo.yutm32euref89),'999999999990'))||')' END AS wkt,
NVL(MAX(REPLACE(dpi.updateuser,'DATAVASK',NULL)),MAX(REPLACE(dpi.insertuser,'DATAVASK',NULL))) AS eksempel_bruger
FROM borehole bo
LEFT JOIN code_808 kl /* Kommune https://data.geus.dk/tabellerkoder/koder.html?codetype=808 */
ON bo.borhtownno2007 = 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