Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: FW: An SQL question , not easy ;-)

Re: FW: An SQL question , not easy ;-)

From: Jan Pruner <jan_at_pruner.cz>
Date: Wed, 15 Aug 2001 03:19:14 -0700
Message-ID: <F001.0036AE96.20010815030553@fatcity.com>

Give me some time :-)))
Jan Pruner

Dne st 15. srpen 2001 12:40 jste napsal(a):
> Dear gurus !
> I have a table of phone calls , 2 fields : CALL_START DATE ,
> CALL_END DATE .
> I need an SQL statement or a PL/SQL block to calculate the maximum
> number of SIMULTANIOUS phone conversations.
> Consider there are 4 calls ,
> one started at 12:10 and ended at 12:40
> second started at 12:15 and ended at 12:30
> third started at 12:25 and ended at 12:55.
> fourth started at 12:45 and ended at 12:47.
> So the first 3 calls are simultanious , for example they overlap at 12:28 ,
> i.e. there are 3 pairs of persons having phone conversation at 12:28.
> The third and fourth calls are simultanious at 12:46 ,i.e. there are 2
> pairs of persons having phone conversation at 12:46.
> So , i need the maximum number of concurrent phone conversations in my
> table.
> Thanks a lot !!!
>
> Please help !!!
> Thanks a lot in advance !
> Andrey.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jan Pruner
  INET: jan_at_pruner.cz

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 15 2001 - 05:19:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US