dbTalk Databases Forums  

Interval data...

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Interval data... in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Volker Hetzer
 
Posts: n/a

Default Interval data... - 02-20-2006 , 09:43 AM






Hi!
Given an interval, how can I identify the first and last dates/times
of it?
I had a look at the doc but there isn't much there for this.

Lots of Greetings1
Volker

Reply With Quote
  #2  
Old   
ianal Vista
 
Posts: n/a

Default Re: Interval data... - 02-20-2006 , 10:13 AM






Volker Hetzer <volker.hetzer (AT) ieee (DOT) org> wrote in news:dtco2j$scn$1
@nntp.fujitsu-siemens.com:

Quote:
Hi!
Given an interval, how can I identify the first and last dates/times
of it?
I had a look at the doc but there isn't much there for this.

Lots of Greetings1
Volker

Try MIN() and MAX()


Reply With Quote
  #3  
Old   
Volker Hetzer
 
Posts: n/a

Default Re: Interval data... - 02-20-2006 , 12:00 PM



ianal Vista schrieb:
Quote:
Volker Hetzer <volker.hetzer (AT) ieee (DOT) org> wrote in news:dtco2j$scn$1
@nntp.fujitsu-siemens.com:

Hi!
Given an interval, how can I identify the first and last dates/times
of it?
I had a look at the doc but there isn't much there for this.

Lots of Greetings1
Volker


Try MIN() and MAX()
Figured out the problem. Oracle intervals aren't like
'from july the 3th to october 23th, 2006' but only '3 months, 5 days'.
Pity. Seems I have to work with date pairs instead.

Lots of Greetings!
Volker


Reply With Quote
  #4  
Old   
Michel Cadot
 
Posts: n/a

Default Re: Interval data... - 02-20-2006 , 12:17 PM




"Volker Hetzer" <volker.hetzer (AT) ieee (DOT) org> a écrit dans le message de news: dtd03t$o39$1 (AT) nntp (DOT) fujitsu-siemens.com...
Quote:
ianal Vista schrieb:
Volker Hetzer <volker.hetzer (AT) ieee (DOT) org> wrote in news:dtco2j$scn$1
@nntp.fujitsu-siemens.com:

Hi!
Given an interval, how can I identify the first and last dates/times
of it?
I had a look at the doc but there isn't much there for this.

Lots of Greetings1
Volker


Try MIN() and MAX()
Figured out the problem. Oracle intervals aren't like
'from july the 3th to october 23th, 2006' but only '3 months, 5 days'.
Pity. Seems I have to work with date pairs instead.

Lots of Greetings!
Volker
Interval is a length it does not have a begin and an end.
My bed is 2 m long, where is the head and where is the foot?
This the same question.

Regards
Michel Cadot




Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Interval data... - 02-20-2006 , 12:27 PM



Volker Hetzer wrote:
Quote:
Figured out the problem. Oracle intervals aren't like
'from july the 3th to october 23th, 2006' but only '3 months, 5 days'.
Pity. Seems I have to work with date pairs instead.

Lots of Greetings!
Volker
where date between ?

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #6  
Old   
Volker Hetzer
 
Posts: n/a

Default Re: Interval data... - 02-21-2006 , 06:52 AM



Frank van Bortel schrieb:
Quote:
Volker Hetzer wrote:
Figured out the problem. Oracle intervals aren't like
'from july the 3th to october 23th, 2006' but only '3 months, 5 days'.
Pity. Seems I have to work with date pairs instead.
where date between ?
Exactly.

Lots of Greetings!
Volker


Reply With Quote
  #7  
Old   
Volker Hetzer
 
Posts: n/a

Default Re: Interval data... - 02-21-2006 , 06:56 AM



Michel Cadot schrieb:
Quote:
Interval is a length it does not have a begin and an end.
My bed is 2 m long, where is the head and where is the foot?
This the same question.
I was hoping that sql follows ISO8601 with regards to time intervals.
The iso standard defines an interval like mathematicians define the
interval between two numbers, like [0,5] for instance.

Lots of Greetings!
Volker


Reply With Quote
  #8  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Interval data... - 02-22-2006 , 01:40 PM



Volker Hetzer wrote:
Quote:
Michel Cadot schrieb:
Interval is a length it does not have a begin and an end.
My bed is 2 m long, where is the head and where is the foot?
This the same question.
I was hoping that sql follows ISO8601 with regards to time intervals.
The iso standard defines an interval like mathematicians define the
interval between two numbers, like [0,5] for instance.

Lots of Greetings!
Volker
Oracle does [0,5> (that is, if I remember the notation correctly...)
--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.