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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Help with SQL query

Re: Help with SQL query

From: Ranga Chakravarthi <ranga_at_nospam.cfl.rr.com>
Date: Sun, 05 Aug 2001 15:46:08 GMT
Message-ID: <4Tdb7.90099$Gh1.14779889@typhoon.tampabay.rr.com>

select *
from
(
select fname, lname, count(1) number_of_entries   from faq
 where entry_date > trunc(sysdate-8)
 group by fname, lname
 order by number_of_entries desc
)
where rownum = 1

"Graham" <gn_at_jan.ucc.nau.edu> wrote in message news:9kes5q$st0$1_at_usenet.nau.edu...
> Here is what I want to do in English, I would appreciate if someone could
> translate this into SQL for me.
>
> Select [fname], [lname] from faq where [fname] has most entries and
> [entry_date] > 8 days old
>
> [ ] denotes column, also available is the primary key [faq_id]
>
> Thanks
> Graham
>
>
>
Received on Sun Aug 05 2001 - 10:46:08 CDT

Original text of this message

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