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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Extract same datetime records

Re: Extract same datetime records

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 17 May 2005 12:44:06 -0700
Message-ID: <1116358809.749398@yasure>


KK wrote:
> Hi Frank,
>
> The call_time doesn't have any specific value to compare.
>
> I just want the duplicated call_time records only. It is something
> related with self join.
>
> Thanks.

SELECT column1, column2, COUNT(*)
FROM ...
WHERE ...
GROUP BY column1, column2
HAVING COUNT(*) > 1;

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Tue May 17 2005 - 14:44:06 CDT

Original text of this message

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