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: using MAX function...

Re: using MAX function...

From: SKurosky <skurosky_at_aol.com>
Date: 08 Mar 2000 21:10:48 GMT
Message-ID: <20000308161048.02477.00001226@ng-ca1.aol.com>


>ROOKIE WROTE:
I have a table that has user_id, first_name, and last_name.
>
>How do I write a view that lets me see all three fields with the
>max(user_id)?
>
>Hi,

One way to do it is:
SELECT MAX(user_id),first_name,last_name FROM table_name
GROUP BY user_id,first_name,last_name;
HTH
Sandy

>
>
>
>
>
>
Received on Wed Mar 08 2000 - 15:10:48 CST

Original text of this message

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