Answers for "postgresql calculate difference of a value between two dates in the same column"

SQL
-1

postgresql get difference between two dates

select age('2010-04-01', '2012-03-05'),
       date_part('year',age('2010-04-01', '2012-03-05')),
       date_part('month',age('2010-04-01', '2012-03-05')),
       date_part('day',age('2010-04-01', '2012-03-05'));
Posted by: Guest on April-08-2020

Code answers related to "postgresql calculate difference of a value between two dates in the same column"

Code answers related to "SQL"

Browse Popular Code Answers by Language