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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL help

Re: SQL help

From: Tanasescu iosif <iositan_at_sprint.ca>
Date: 1997/11/01
Message-ID: <01bce6f3$0790c1e0$5e1867d1@iositan>#1/1

try:
select id,date
from visits
where rank = (select max(rank) from visits);

I.K.

H. John C. Hopkins <john_spam_free_at_hpe.ufl.edu> wrote in article <6357rv$oes_at_no-names.nerdc.ufl.edu>...
> Table VISITS
> Fields ID, DATE, RANK
>
> ID is not a primary key (i.e., can have multiple occurrences of ID, each
> with different dates and ranks)
>
> Need to select id AND date where highest rank value.
>
> Thanks so much for your input.
>
> -John
>
>
>
>
>
  Received on Sat Nov 01 1997 - 00:00:00 CST

Original text of this message

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