Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
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 answers
Answer question

0

You can try the following in SQL

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

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!