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

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

FW: An SQL question , not easy ;-)

From: Andrey Bronfin <andreyb_at_elrontelesoft.com>
Date: Wed, 15 Aug 2001 02:36:04 -0700
Message-ID: <F001.0036AE23.20010815024024@fatcity.com>

        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: Andrey Bronfin
  INET: andreyb_at_elrontelesoft.com

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 - 04:36:04 CDT

Original text of this message

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