Skip to content

Commit

Permalink
Henter kun for ett år, siden influxdb er begrenset til det uansett
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad committed May 21, 2024
1 parent ea3eda6 commit d15bd6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ select time, behandling_type, behandling_status, ytelse_type, opprettelsegrunn,
INNER JOIN FAGSAK F ON B.FAGSAK_ID = F.ID
LEFT OUTER JOIN EKSTERN_BEHANDLING eb on eb.intern_id = b.id
LEFT OUTER JOIN OKO_XML_MOTTATT oxm on oxm.henvisning = eb.henvisning and oxm.melding like '<?xml version="1.0" encoding="utf-8"?><urn:detaljertKravgrunnlagMelding%'
where b.opprettet_tid > systimestamp - 365
) where rnk = 1
group by time, behandling_type, behandling_status, ytelse_type, opprettelsegrunn
order by 1, 2, 3, 4, 5
Expand Down

0 comments on commit d15bd6f

Please sign in to comment.