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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Get the Latest Date

Re: Get the Latest Date

From: Gavin D'Mello <gavin_d_at_tis.co.in>
Date: Fri, 12 Apr 2002 04:18:23 -0800
Message-ID: <F001.00443023.20020412041823@fatcity.com>


Thanks alot Iain

> Gavin,
>
> select username, max(access_time) last_access_time, count(*) no_of_logins
> from session_info_table
> group by username
>
> should do it
>
> Iain Nicoll
>
> -----Original Message-----
> Sent: Friday, April 12, 2002 11:43 AM
> To: Multiple recipients of list ORACLE-L
>
>
> Hi,
> I have read up quite a lot before posting this message so please
> bear with me if this question is trivial.
> I have table which stores session information of users. I have to develop
a
> report which gives me the number of times users have logged in ( which is
> straightforward ) as well as their last access time.
> Since every user has multiple records in the table, I was trying
to
> find a way to get me just one row per user which returns the latest date,
> rather than checking for the latest date in the client logic.
> Is there any function in Oracle which would return the latest date
?
>
> Thank You,
>
> Gavin
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gavin D'Mello
> INET: gavin_d_at_tis.co.in
>
> 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).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Nicoll, Iain (Calanais)
> INET: iain.nicoll_at_calanais.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gavin D'Mello
  INET: gavin_d_at_tis.co.in

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 Fri Apr 12 2002 - 07:18:23 CDT

Original text of this message

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