Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
Count the difference of time in a table using postgre sql query
  • I have a table named Job with created_date and start_date columns.
  • I need to count the difference in start_date and created_date and find the count
  • count difference of 1 day 2 days 3 days and so on

Help me with it, I am new in sql queries

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You can try the following in SQL

SELECT TRUNC(START_DATE) - TRUNC(CREATED_DATE) DAYS FROM JOB;
over 4 years ago · Santiago Trujillo Denunciar

0

I found the Answer in postgresql it is:

select date_part('day',start_time - created_on) as Difference , count(*)  from Job

thanks for the replies to all

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda