Most recent query

how t check the most recent query that ran on the database?
Select * from v$version;
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
"CORE     10.2.0.5.0     Production"
TNS for HPUX: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production

it's better to enable auditting and check all the related sql statement of any particular user . You can check by below link :
http://neeraj-dba.blogspot.com/2011/07/auditing-in-oracle.html
--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and service packs.

    SSRS 2008 R2 is extremely slow.  The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes.  I have read this is a bug in SSRS 2008 R2.  We installed the most recent patches and
    service packs.  Nothing we've done so far has fixed it and I see that I'm not the only person with this problem.  However I don't see any answers either.

    Hi Kim Sharp,
    According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
    I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
    of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
    http://support.microsoft.com/kb/2276203
    Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/ 
    If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
    Actually, the Report Server ExecutionLog2  view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
    After you determine whether the delay time is in data retrieval, report processing, or report rendering:
    use ReportServer
    SELECT TOP 10 ReportPath,parameters,
    TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering,
    ByteCount, [RowCount],Source, AdditionalInfo
    FROM ExecutionLog2
    ORDER BY Timestart DESC
    Use below methods to help troubleshoot issues according to the above query result :
    Troubleshooting Reports: Report Performance
    Besides this, you could also follow these articles for more information about this issue:
    Report Server Catalog Best Practices
    Performance, Snapshots, Caching (Reporting Services)
    Similar thread for your reference:
    SSRS slow
    Any problem, please feel free to ask
    Regards
    Vicky Liu

  • Order by most recent date not working in CAML Query

    Hi,
    I am trying to pull items from an announcements list and I would like the results sorted by most recent first, but it is coming back as least recent first. Can someone tell me what is wrong with the query? I even tried "Modified" and I get the
    same result. Thanks.
             SPList oList  = SPContext.Current.Site.OpenWeb("ts/hse").Lists["near misses"];
               SPQuery spQuery = new SPQuery();
               spQuery.Query = "<Query><OrderBy><FieldRef Name='Created' Type='DateTime' IncludeTimeValue='TRUE'  Ascending='False' /></OrderBy></Query>";
               spQuery.RowLimit = 3;
               SPListItemCollection spListItemCollection = oList.GetItems(spQuery);
    Sherazad

    Hi,
    I did a test in my environment as the capture below. It works properly.
    I suggest you try the code in another list and test whether it works.
    Feel free to reply with the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Want to store the text of most recently executed query in a table

    Hi,
    I know that there is a data dictionary table or view (i forget the name, if someone can tell, i will appreciate) which can show me the most recently executed query. If i am using some web based front end and want to store the most recently executed query (not only select but also updates, inserts and deletes statments)
    into a table, is it possible that i can do this through some sort of triggers. I want to use this for auditing inert, update or delete. Your help in this matter will be highly appreciated.
    Thanks
    Muhammad Ejaz

    Hi,
    I am not sure how to get result but the tables from which you can get the sql statements are v$sqltext, v$session
    Hari

  • How to display maximum (most recent) date value in a query

    hello,
    I have the following query:
    StudentNumber | ExternalOrganization | Date |         | NumbeOfAdmissions
    0112                  050                            06/27/2007   1
    0234                  060                            07/15/2008   1
    1356                  025                            01/08/2008   1
    My dilemma is how to display only the row that has the most recent Date, e.g. here I want to only see the row with student number 0234 and date 07/15/2008; everything else should be hidden.
    I know it should be very simple....yes/no?
    thanks

    Hi
    even I am facing the same problem..
    Can you please tell me what did you do to get most recent record..
    Even I have made my date field as KF.. n have put condition on it.. but not getting desired result.. may be I am missing something.. somewhere..
    I resolved it.. thanks
    Regards
    Swati
    Edited by: Swati on Feb 17, 2009 7:49 AM

  • Query most recent date

    I do not know how to accomplish querying a table on an index for a single value representing the record with the most recent datetime.
    The table looks like:
    CREATE TABLE PartReceipt(
    Id [int] IDENTITY(1,1) NOT NULL,
    PartId [int] NOT NULL,
    UnitCost decimal(8,2) NOT NULL,
    DateInserted [datetime] NOT NULL)
    PartId is a foreign key into the Part table.
    I tried:
    select unitcost from partreceipt  where partid=583  having max(dateinserted)
    but received this error:
    An expression of non-boolean type specified in a context where a condition is expected, near ')'.

    >> The table looks like: <<
    I hope not! 
    A table models a set, so its name has to be plural or a collective name. Do you really have only one receipt? 
    A table has to have a key by definition. 
    We do not use IDENTITY in RDBMS. Why would the proprietary table property that counts physical insertion attempts be part of a valid data model? 
    Identifiers are never numeric. What math do you do with it? None. How do you get validation and verification with a numeric? 
    Why did you use an old Sybase DATETIME and not a DATE or even a DATETIME2(0)?
    Why did you fail to post the DRI in your narrative? 
    Insertion is a physical event and has nothing to do with a logical data model.  Your “DateInserted” violates both ISO-11179 rules and logic. 
    Here is one guess, but in another design we could have (receipt_date, part_id) as a key. This would mean that you get a daily shipment.
    CREATE TABLE Part_Receipts
    (receipt_nbr CHAR(10) NOT NULL PRIMARY KEY,
     receipt_date DATE DEFAULT CURRENT_TIMESTAMP NOT NULL,
     part_id CHAR(10) NOT NULL
       REFERENCES Parts(part_id),
     unit_cost DECIMAL(8,2) NOT NULL
      CHECK (unit_cost >= 0.00),
    SELECT unit_cost, MAX(receipt_date)AS max_receipt_date
      FROM Part_Receipts
     WHERE part_id = '0000000583';
    Your HAVING clause made no sense; there was no predicate in it. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Most Recent Document data of the query

    Hi all,
    We have document data attached to a infoprovider,So in the query level, it should display the most recent updated document.But it is showing the previous document data.
    can anyone tell me if any setting is avaialble for this or how to achieve this.
    Please help.
    Thanks in advance!

    Hi rajesh,
    I dint try this solution. but im just guessing. so forgive me if it doesn't work.
    in your report did you try adding the time column and in the forumla give max(time by customer_site)
    thanks,
    Karthick

  • Progressive Profiling - Lead Source Most Recent Hidden Field - Query String

    I've just finished setting up my first progressive profile form and landing page. Caveat: I have not tested it out yet. On my other forms, I'm using a query string to capture lead source most recent as a hidden field. Is it also possible, using the same javascript, to capture that information on the form? I have added the source field to each of my three rule sets - but have no idea if it will work.
    Does anyone have any experience in using hidden fields with a query string and javascript in progressive profiling? Wow, that's a mouthful, and I can't even believe I know enough to be able to ask that question.
    thank you in advance for any guidance!

    Hi Leah,
    Great news! Nothing better than solving an Eloqua issue on a Monday!
    When you're using the cloud connector the HTML form name in the page code is "CCPPForm" instead of the HTML form name you used in the original form. If you take a look at the code of the page you're working on you'll see a div that includes your form. It should say "id="CCPPForm" name="CCPPForm"  in the form tag. Your instance might use something different, but I found using the progressive profile HTML name instead of my form HTML name did the trick. Also just double check to make sure your hidden field is showing for every rule in your progressive profile form rule settings.
    If this isn't making sense I'll grab some screen shots for you!
    Danielle

  • Brbackup - querying the most recent directory

    Before I hack my backup script, is there a cli where I can query the most recent
    backup directory ? instead of look in initABC.sap for the backup_root etc and
    looking for the last backup in the .../sapbackup/backxxx.log ?
    For example in the initXXX.sap my backup_root is
    /centos1/data2/sap01/PSM_DB_BACKUP
    and an example output from a brbackup has in it
    BR0106I Files will be saved on disk in directory: /centos1/data2/sap01/PSM_DB_BACKUP/bdushuca
    or
    BR0058I BRBACKUP action ID: bdushuca
    Is there a cli that I can get something with the bdushuca in it ?

    cli - sorry command line ...
    i started looking at that log file, but not sure if the last line would be it,
    say if a particular backup failed the subdirectory would not get created.
    for now I'm sending the stdout of brbackup to a file, then when brbackup
    is finished I'm using awk to find BR0106I then getting the directory from
    that line.
    by doing that I know that directory xyz is the one associated with this
    backup.
    works but though there may be a cleaner way.
    -pete TOTALLY new to sap

  • How to query most recent rows based on datetimestamp

    Hi
    Using the query below I am generating an output of machines (facility_code) but at present I am getting the same machine reported several times due to there being more than one instance of that machine in the table. What differs these mulitple entries is the start date field so based on that field I wish to pull only the most recent entry for each facility code. I would like to display the output of the query below on this forum to clarify my ramblings but the only way seems to via a text editor which does not allow for displaying formatted data and thus is is nigh on impossible to read/understand here. Any suggestions?
    SELECT F_FACILITY_CODE,
    CASE
    when JOB_DATE_ACT_START < TO_DATE('26-06-2000 07:00:00', 'DD-MM-YYYY HH24:MI:SS') then SCH_DATE_DUE
    else JOB_DATE_ACT_START
    END StartDate
    ,FS_STATE,
    CASE
    when JOB_ACTIVITY_CAUSE like ' ' and SA_ACTIVITY_CAUSE like ' ' then JREQ_REQ_CODE2
    when JOB_ACTIVITY_CAUSE LIKE ' ' and SA_ACTIVITY_CAUSE <> ' ' then SA_ACTIVITY_CAUSE
    else JOB_ACTIVITY_CAUSE
    END Cause
    ,JREQ_ORIGINATOR,
    CASE
    when JOB_JOB_TITLE like ' ' and JREQ_JOB_TITLE like ' ' then SA_JOB_TITLE
    when JOB_JOB_TITLE LIKE ' ' and JREQ_JOB_TITLE <> ' ' then JREQ_JOB_TITLE
    else JOB_JOB_TITLE
    END Comments
    FROM ALL_JOBS_VIEW, FACILITY_REFERENCES
    WHERE
    ALL_JOBS_VIEW.SCH_FACILITY_CODE = FACILITY_REFERENCES.FACILITY_CODE AND
    ALL_JOBS_VIEW.JOB_JOB_STATUS <> 'CL' AND
    FACILITY_REFERENCES.REF_PROMPT = '72 WAFER AREA' AND
    FACILITY_REFERENCES.REF_DATA ='varArea'
    ORDER BY
    "FACILITY_REFERENCES"."REF_DATA" ASC
    Thanks a mil
    Emma

    Even.. without subquery
    sql>select * from mac;
    MC ST_DT STATUS
    ASM_51  25-JAN-07  IDLE 
    ASM_51  18-JAN-07  IDLE 
    ASM_51  10-JAN-07  IDLE 
    ECO_53  02-NOV-06  PROD 
    ECO_53  23-NOV-06  PROD 
    ECO_53  25-NOV-06  PROD 
    sql>
    select min(mc) keep(dense_rank first order by st_dt desc) mc,
           max(st_dt) dt,
           min(status) keep(dense_rank first order by st_dt desc) status
    from mac
    group by mc;
    MC DT STATUS
    ASM_51  25-JAN-07  IDLE 
    ECO_53  25-NOV-06  PROD
    jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Most recent date query..

    Hi All..
    I have 2 tables note and sub_note and sample data is..
    create table note(note_date date,pmry_id number,sub_id number not null)
    insert into note(note_date,pmry_id,sub_id) values('12/30/2008 02:12:52',282,1)
    insert into note(note_date,pmry_id,sub_id) values('12/23/2008 10:12:24',282,1)
    insert into note(note_date,pmry_id,sub_id) values('12/22/2008 01:12:11',282,1)
    insert into note(note_date,pmry_id,sub_id) values('12/22/2008 09:12:56',282,1)
    insert into note(note_date,pmry_id,sub_id) values('12/19/2008 01:12:54',282,1)
    insert into note(note_date,pmry_id,sub_id) values('12/22/2008 09:12:56',282,2)
    insert into note(note_date,pmry_id,sub_id) values('12/22/2008 09:12:57',282,2)
    create table sub_note(sub_id number not null,sub_name varchar2(100))
    insert into sub_note(sub_id,sub_name) values(1,'Product')
    insert into sub_note(sub_id,sub_name) values(2,'Expectations')how can select the most recent date for product and most recent date for expectations...joining these 2 tables..
    Thanks in advance...

    user10280715 wrote:
    Thanks for the reply...
    that was only a sample data..so I kept 2 sub_names for a perticular pmry_id..my original data contains several sub_names(about 5) for a perticular pmry_id...
    hope you gt my point..I'm not sure I understand.
    If you have 5 sub_names that you're interested in, change the WHERE clause to have those 5 sub_names. The list after "IN" can have as few as 1 or as many as 1000 items. (I'm not too sure about the upper limit, and it may be version-dependent.)
    If you want to include all sub_names, then omit the WHERE clause.

  • Help with getting the most recent transaction

    I have a system that keeps track of part repairs. Unfortunately a part my come in for repair multiple times. I want my query to pull back the most recent time/ request id that a part came in. This is my basic query, but it pulls back multiple records for the given part/serial number combo. How can I re-write this? Thanks
    SELECT M4OWNER.STOCK_SERIAL_ID.BIN_ID AS "Bin",
    M4OWNER.RECEIVING_UNIT.CREATED_DTTM AS "Date Placed in Bin",
    M4OWNER.STOCK_SERIAL_ID.SERIAL_ID AS "Serial ID",
    M4OWNER.STOCK_SERIAL_ID.PART_ID AS "Part ID",
    M4OWNER.STOCK_SERIAL_ID.USEABLE AS "Usable Status",
    M4OWNER.RECEIVING_UNIT.REQUEST_ID AS "Request ID",
    M4OWNER.RECEIVING_UNIT.REQUEST_LINE AS "Line",
    M4OWNER.STOCK_SERIAL_ID.PLACE_ID AS "Warehouse",
    M4OWNER.STOCK_SERIAL_ID.LOCATION AS "Location"
    FROM M4OWNER.STOCK_SERIAL_ID INNER JOIN
    M4OWNER.RECEIVING_UNIT ON M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = M4OWNER.RECEIVING_UNIT.SERIAL_ID AND
    M4OWNER.STOCK_SERIAL_ID.PART_ID = M4OWNER.RECEIVING_UNIT.PART_ID INNER JOIN
    M4OWNER.RECEIVING ON M4OWNER.RECEIVING_UNIT.RECEIVING_ID = M4OWNER.RECEIVING.RECEIVING_ID INNER JOIN
    M4SUPP1.PART ON M4OWNER.STOCK_SERIAL_ID.PART_ID = M4SUPP1.PART.PART_ID
    WHERE (M4OWNER.STOCK_SERIAL_ID.BIN_ID = 'LOCATION')
    AND (M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = 'ISSUE360')

    I have a system that keeps track of part repairs. Unfortunately a part my come in for repair multiple times. I want my query to pull back the most recent time/ request id that a part came in. This is my basic query, but it pulls back multiple records for the given part/serial number combo. How can I re-write this? Thanks
    SELECT M4OWNER.STOCK_SERIAL_ID.BIN_ID AS "Bin",
    M4OWNER.RECEIVING_UNIT.CREATED_DTTM AS "Date Placed in Bin",
    M4OWNER.STOCK_SERIAL_ID.SERIAL_ID AS "Serial ID",
    M4OWNER.STOCK_SERIAL_ID.PART_ID AS "Part ID",
    M4OWNER.STOCK_SERIAL_ID.USEABLE AS "Usable Status",
    M4OWNER.RECEIVING_UNIT.REQUEST_ID AS "Request ID",
    M4OWNER.RECEIVING_UNIT.REQUEST_LINE AS "Line",
    M4OWNER.STOCK_SERIAL_ID.PLACE_ID AS "Warehouse",
    M4OWNER.STOCK_SERIAL_ID.LOCATION AS "Location"
    FROM M4OWNER.STOCK_SERIAL_ID INNER JOIN
    M4OWNER.RECEIVING_UNIT ON M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = M4OWNER.RECEIVING_UNIT.SERIAL_ID AND
    M4OWNER.STOCK_SERIAL_ID.PART_ID = M4OWNER.RECEIVING_UNIT.PART_ID INNER JOIN
    M4OWNER.RECEIVING ON M4OWNER.RECEIVING_UNIT.RECEIVING_ID = M4OWNER.RECEIVING.RECEIVING_ID INNER JOIN
    M4SUPP1.PART ON M4OWNER.STOCK_SERIAL_ID.PART_ID = M4SUPP1.PART.PART_ID
    WHERE (M4OWNER.STOCK_SERIAL_ID.BIN_ID = 'LOCATION')
    AND (M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = 'ISSUE360')

  • Most recently created row

    We have an error_log table which will log errors after the execution of a stored proc.
    We have a create_time field which stores the time of creation of the new record.
    How can i view the most recently created row? Is the below mentioned query(courtesy of OTN) Ok? Or are there any other better options?
    select err_msg from (select err_msg from err_log order by create_time desc)
    where rownum=1 ;

    That seems to be quite expensive
    SQL> get t
      1  with t as (select 'test' err_msg, sysdate create_time from dual
      2             union all select 'test2' err_msg, sysdate -1 create_time from dual
      3             union all select 'test3' err_msg, sysdate -2 create_time from dual
      4             union all select 'test4' err_msg, sysdate -3 create_time from dual)
      5  select *
      6    from t, (select max(t.create_time) over(order by create_time desc) maxtime
      7               from t) tab
      8   where t.create_time = tab.maxtime
      9*  and rownum = ceil(abs(sin(42)))
    SQL> /
    ERR_M CREATE_TI MAXTIME
    test  17-JAN-08 17-JAN-08
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=14 Card=1 Bytes=22)
       1    0   TEMP TABLE TRANSFORMATION
       2    1     LOAD AS SELECT
       3    2       UNION-ALL
       4    3         FAST DUAL (Cost=2 Card=1)
       5    3         FAST DUAL (Cost=2 Card=1)
       6    3         FAST DUAL (Cost=2 Card=1)
       7    3         FAST DUAL (Cost=2 Card=1)
       8    1     COUNT (STOPKEY)
       9    8       HASH JOIN (Cost=6 Card=1 Bytes=22)
      10    9         VIEW (Cost=2 Card=4 Bytes=52)
      11   10           TABLE ACCESS (FULL) OF 'SYS_TEMP_0FD9D7BD6_7502F1D5' (TABLE (TEMP)) (Cost=2 Card=4 Bytes=52)
      12    9         VIEW (Cost=3 Card=4 Bytes=36)
      13   12           WINDOW (SORT) (Cost=3 Card=4 Bytes=36)
      14   13             VIEW (Cost=2 Card=4 Bytes=36)
      15   14               TABLE ACCESS (FULL) OF 'SYS_TEMP_0FD9D7BD6_7502F1D5' (TABLE (TEMP)) (Cost=2 Card=4 Bytes=52)
    Statistics
              2  recursive calls
              8  db block gets
              8  consistent gets
              1  physical reads
            648  redo size
            683  bytes sent via SQL*Net to client
            660  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL>But if you code it a little bit trickier, it suddenly costs "nothing"
    SQL> get t
      1  with t as (select 'test' err_msg, sysdate create_time from dual
      2             union all select 'test2' err_msg, sysdate -1 create_time from dual
      3             union all select 'test3' err_msg, sysdate -2 create_time from dual
      4             union all select 'test4' err_msg, sysdate -3 create_time from dual)
      5  select *
      6    from  (select err_msg, create_time, row_number() over(order by create_time desc) rn
      7               from t) tab
      8*  where rn = ceil(abs(sin(42)))
    SQL> /
    ERR_M CREATE_TI         RN
    test  17-JAN-08          1
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=9 Card=4 Bytes=104)
       1    0   VIEW (Cost=9 Card=4 Bytes=104)
       2    1     WINDOW (SORT PUSHED RANK) (Cost=9 Card=4 Bytes=52)
       3    2       VIEW (Cost=8 Card=4 Bytes=52)
       4    3         UNION-ALL
       5    4           FAST DUAL (Cost=2 Card=1)
       6    4           FAST DUAL (Cost=2 Card=1)
       7    4           FAST DUAL (Cost=2 Card=1)
       8    4           FAST DUAL (Cost=2 Card=1)
    Statistics
              1  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            673  bytes sent via SQL*Net to client
            660  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL>

  • Can I reverse-publish in Muse? In other words, can I download to my desktop my most recent live version of my website?

    my laptop with my most recent work has crashed. I've downloaded Muse to another desktop but don't have a current version of my website in a file I can access (yes, it's on my laptop-ugh!). So I'm trying to see if I can "reverse-publish" my site from my live version back to my desktop.

    HI
    If in case you have lost the Muse file or the computer is crashed due to which you do not have the access to file,I am afraid, at this stage its not possible to import the site that you have published back in Adobe Muse
    Also, to be on safer side, you may keep your file save with creative cloud storage you get when you purchase your subscription so that, even if you don"t have access to you computer, you may have the updated file downloaded to another and do not loose the work.
    Let me know if you have any further query.

  • Need to retrieve the most recent record per deposit number

    Can someone please show me a way to solve my problem or at least point me in the right direction.
    I have a simple bibliography table called mdd_biblio that has 3 fields:
    bib_mdd_no this is a deposit number
    bib_upd_by person who updated the record
    bib_upd_date date the record was updated (timestamp)
    A deposit might have more than one bibliographic entry with either the same date or a newer date and, the deposit might have one or more person updating the bibliography
    The table has 4974 records but only 1867 are unique deposit numbers
    All I want to do is select a single record that indicates when the deposit was last edited and and who did the editing (as indicated by the *). I don't care which record it is as long as it is the most recent date.
    The following query retrieves 1944 records (67 duplicates) and has eliminated 3000 duplicates but hasn't eliminated them all. Why?
    select unique(bib_mdd_no), bib_upd_by, bib_upd_date from mdd_biblio
    order by bib_mdd_no
    M64C/16-001 MDD 13-SEP-07 *
    M64C/16-001 MDD 13-SEP-07
    M64C/16-002 DPROUXE 30-NOV-07 *
    M64C/16-002 MDD 13-SEP-07
    M64C/16-002 MDD 13-SEP-07
    M64C/16-003 DPROUXE 29-NOV-07 *
    M64C/16-003 MDD 13-SEP-07
    M64C/16-003 MDD 13-SEP-07
    M64C/16-004 MDD 13-SEP-07 *
    M64C/16-004 MDD 13-SEP-07
    M64C/16-005 MDD 13-SEP-07 *
    M64C/16-005 MDD 13-SEP-07
    M64C/16-006 DPROUXE 03-DEC-07 *
    M64C/16-006 MDD 13-SEP-07
    M64C/16-007 MDD 02-OCT-07 *
    M64C/16-008 MDD 02-OCT-07 *
    M64C/16-009 MDD 02-OCT-07 *
    M64C/16-010 MDD 02-OCT-07 *
    I don't understand why of these duplicates still show up here since 3000 have been eliminated..
    To Reiterate: What I really need is a simple query to retrieve the most recently edited record for each deposit number regardless of the updater's name. I need this in order to build a summary table from this and 15 other tables.
    Thanks for any help you can give
    Glenn

    Usually it is done somehow like this
    select bib_mdd_no,
           bib_upd_by,
           bib_upd_date
      from (select bib_mdd_no,
                   bib_upd_by,
                   bib_upd_date,
                   row_number() over (partition by bib_mdd_no order by bib_upd_date desc) r
              from mdd_biblio
    where r = 1
    order by bib_mdd_noRegards
    Etbin

Maybe you are looking for

  • How to keep leading zeros in numeric Keynote entries?

    When I try to enter numbers that start with zeroes in a table, Keynote removes the zeroes. For instance, I type 007 and it gets "corrected" to 7. Also, for instance, when i type false in lower case, it gets changed to FALSE. How do I stop this? I fou

  • Inbound Queue - new filter

    Hi, i'm trying to create a new filter for an Inbound Queue using as reference the document <b>HowTo_prioritizeXImessages.pdf</b>. As I follow the document point by point, and after created a new Sender/ReceiverID for my Service (Epiphany) and choose

  • Softwareupdate Unix command, feedback on CatalogURL in Leopard?

    I've been successfully updating my Macs from the Software Update Server on my Tiger server for some time. Tiger clients show feedback that they are addressing my server; the GUI client displays the server's address in the title bar, and the command-l

  • Increasing the number of Characters in a Characteristic

    Hello there,                  We are trying to increase the number of characters in a characteristic (CT04) from 30 characters to about 50 characters. Is there a SAP OSS note that we can implement in ECC6 to enable us to make this work for us ? Thank

  • Exporting anamorphic (2.39:1) footage to DVD

    I'm struggling with exporting my film to DVD -- I shot with anamorphic lenses to the wide screen aspect ratio of 2:39:1. I can view the files okay in FCP after checking the anamorphic box. But once I start exporting with compressor, the only wide scr