+-Le 19/10/2003 23:38 +1000, email lists écrivait :
| Hi All,
| 
| I am wanting to perform the equivalent of date_trunc to 5/10/15 minute
| intervals. As this does mnot seem to be natively supported by
| date_trunc, can anyone point me in the right direction to possible write
| the SQL ro achieve the desired outcome?

maybe (date_part(epoch, field)::integer / 300 * 300)::timetamp for 5
minutes interval...

-- 
Mathieu Arnold

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to