Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
Postgresql bulk retrieval

Currently I have a query that outputs some sort of performance index based on the date range selected. For example, by choosing 1st Jan 2017 to 6th Jan 2017, it gives me the performance of all the workers over this period aggregating their scores from these few days. Something like this:

Rank|Name|Score
1   |Tom |98
2   |Sam |87
3   |Sab |88

That is if I select that particular date range. The score changes from time to time as the date range changes. Right now, how it works is on 7th Jan, I am interested in his performance one week prior (1st Jan - 6th Jan), so the current query requires me to manually select the date range if I want to have the data for each day. Ideally now I would love to have a huge list of data looking at performances over a huge date range, 1 December 16 - 1st March 17. E.g. from each day of this range, I obtain the score 1 week prior. I would love to be able to generate this data by selecting this date range instead so it should look something like this:

Rank|Name|Score|Date of Reference
1   |Tom |91   |1st Dec (Looks at data from 24th to 30th Nov)
2   |Sam |83   |1st Dec (Looks at data from 24th to 30th Nov)
3   |Sab |85   |1st Dec (Looks at data from 24th to 30th Nov)
1   |Tom |81   |2nd Dec (Looks at data from 25th Nov to 1st Dec)
2   |Sam |66   |2nd Dec (Looks at data from 25th Nov to 1st Dec)
3   |Sab |90   |2nd Dec (Looks at data from 25th Nov to 1st Dec)
1   |Tom |34   |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
2   |Sam |50   |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
3   |Sab |98   |3rd Dec (Looks at data from 26th Nov to 2nd Dec)
so on and so forth till 1st March

The restriction I have now is I can only select the date ranges for one week. and then download these files one by one which is extremely time consuming.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda