Question : I have 2 tables: tbl1, tbl2. CREATE TABLE tbl1(time_1) AS VALUES ( ‘2017-09-06 15:26:03’::timestamp ), ( ‘2017-09-06 15:26:02’ […]
Tag: time
Efficiently storing irregular/repeating intervals (think calendar/events)
Question : I am developing a service that relies on users being able to recieve messages that they themselves choose. […]
Which of the following pieces of SQL is most efficient
Question : I need to add the date part of GetDate() to the time part of a stored DateTime. Naively […]
How to design database for monitoring the time trends of article tags?
Question : My purpose is to monitor which tags increase/decrease rapidly last week on different bulletin boards. Or which tag […]
Calculating the elapsed time of Oracle Database Startup operation
Question : I’m trying to calculate the elapsed time of Oracle Database startup command. The view V$INSTANCE contains the STARTUP_TIME […]
Convert specific time format to common one
Question : Environment: I have ‘duration’ datas stored as varchar(4) in a table. 2 first characters are hours, 2 last […]
Function to compute difference between 2 times
Question : I want to create a simple function in Postgres to find the difference between 2 TIME – not […]
Dates, Times and Timezones – How are they incorporated in Interval?
Question : Does interval ‘1 month’ incorporate month differences and leap years when calculating date/datetime boundaries? If so, how does […]
PostgreSQL interval division
Question : This has come up a couple of times, e.g., in the postgresql newsgroup and the wiki. In general, […]
time difference between two machines makes problem in service broker communication
Question : I have two machines and each machine has a SQL Server instance. Between these machines I run service […]