range-types Questions
3
I am developing an algorithm with Postgres (PL/pgSQL) and I need to calculate the number of working hours between 2 timestamps, taking into account that weekends are not working and the rest of the...
Trinh asked 3/12, 2009 at 11:22
1
Solved
In the course of writing a program that accepts tsrange literals from the user, which are then plugged into various SQL queries, today I was testing some tsranges to see how they are interpreted by...
Tenatenable asked 24/11, 2014 at 11:19
1
Solved
CREATE TABLE operating_period (
id SERIAL NOT NULL PRIMARY KEY,
during TSTZRANGE NOT NULL,
-- other meta fields
);
Requirements:
1. No operating period can overlap with each other
Question:
...
Schilit asked 23/10, 2014 at 23:35
1
Solved
I'm in the RoR stack and I had to write some actual SQL to complete this query for all records that are "open", meaning that the current time is within the specified hours of operation. In the hour...
Squire asked 1/3, 2014 at 0:37
3
Solved
I am creating a database which stores arbitrary date/time ranges in PostgreSQL 9.2.4. I want to place a constraint on this database which forces the date/time ranges to be non-overlapping, and non-...
Sellingplater asked 21/10, 2013 at 21:6
3
Solved
I think this may be a common problem that may not have an answer for every tool. Right now we are trying to use amazons Redshift. The only problem we have now is we are trying to do a look up of zi...
Encarnacion asked 28/6, 2013 at 23:20
1
© 2022 - 2024 — McMap. All rights reserved.