Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Juridiske enheder #4

Open
baffioso opened this issue Mar 19, 2017 · 2 comments
Open

Juridiske enheder #4

baffioso opened this issue Mar 19, 2017 · 2 comments

Comments

@baffioso
Copy link
Contributor

baffioso commented Mar 19, 2017

Det skal overvejes om der også skal dannes historik på juridiske enheder

@baffioso
Copy link
Contributor Author

baffioso commented Mar 22, 2017

Denne kan integreres i funktionen


       SELECT cvr_prod_enhed_geo.virksomhed_cvrnr,
           cvr_prod_enhed_geo.pnr,
           cvr_prod_enhed_geo.hovedbranche_tekst,
           cvr_prod_enhed_geo.navn_tekst,
           cvr_prod_enhed_geo.kommune_kode,
           cvr_prod_enhed_geo.beliggenhedsadresse_vejnavn,
           cvr_prod_enhed_geo.belig_adresse_husnummerfra,
           cvr_prod_enhed_geo.beliggenhedsadresse_postnr,
           cvr_prod_enhed_geo.belig_adresse_postdistrikt,
           cvr_prod_enhed_geo.email_kontaktoplysning,
           cvr_prod_enhed_geo.livsforloeb_startdato,
           beliggenhedsadresse_gyldigfra
          FROM cvr.cvr_prod_enhed_geo
         WHERE cvr_prod_enhed_geo.indlaest_dato = date_trunc('month', now()) and beliggenhedsadresse_gyldigfra Between date_trunc('month', now() - '1 mon'::interval) and date_trunc('month', now())
         order by beliggenhedsadresse_gyldigfra
         limit 100```

@ClockEnd
Copy link
Contributor

Vi skal vel have Jur-enheder med for at ramme det korrekte tal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants