Skip to content
Advertisement

Tag: intervals

how to convert integer minutes to interval in postgres

I’m trying to convert minutes which are in integer to interval in postgres Is there any function that will help me to convert it to interval or should i have divide it by 60 and get the final result Answer Fastest way is with make_interval So it looks like this (as suggested by @Teddy) or, Not to say that’s the

Postgresql query between date ranges

I am trying to query my postgresql db to return results where a date is in certain month and year. In other words I would like all the values for a month-year. The only way i’ve been able to do it so far is like this: Problem with this is that I have to calculate the first date and last

Advertisement