Select the Most Recent Record

I have a 2-page report that is grouped by employee, where the first page is a standard letter except for address, and the second page is a reproduction of a scanned form that the employee had returned.  The employee may have returned several versions of the form over time, updating it each time.
I would like to have the report only pull in the most recent scanned image, ignoring all prior images.  I'm struggling with the correct record selection criteria. 
Any help would be appreciated.
Thank you.

Hi,
If you have any date field in the data base that updates the time whenever the image is updated then use that date field in the report-->record sort expert and use ascending order. Now place the image field from the data base in the group footer of Employee which shows the latest image. If you want the old one then goto record sort expert and change the order for date field to descending.
Regards,
Raghavendra

Similar Messages

  • Clicking the Stamp tool doesn't select the most recently used stamp - Acrobat X

    My issue is pretty much what the title says. Clicking the Stamp tool doesn't select the most recently used stamp. According to the Help screens and training videos, it should. I've checked Edit > Prefernces and could not find a setting that adjusted this behavior of the Stamp tool. Does anyone know what can be done to fix this? BTW - It's not just my installation of Acrobat X. Other users at my firm are having the same issue. The OS is Windows 7. Users have administrator rights. Thanks in advance.

    Hello Abhilasha,
    So, what your saying is that this function, the ability to select the most recently used stamp by clicking the stamp tool, has been removed, in spite of the fact that Acrobat's Help pages says it can be done (Using Acrobat X Standard > Collaboration > Commenting > Apply a Stamp > Step 1 > Second bullet). I wish they would put it back. It was quite handy.
    Perhaps I should adjust my request. Do you (or anyone else) know of a way to use the same stamp several times in a row without having to choose the stamp from the stamps list? For example, if you needed to put a check-mark stamp in several places in a document, it would be a pain to have to go back to the list each time. Is there perhaps an undocumented feature (maybe holding down a particular key while using the stamp) that would allow for multiple stamping?
    Thank you,
    Phillip

  • 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

  • In mail how do I stop messages from the same sender from showing up when I select the most recent message from a sender?

    on my iMac, when I view messages there is a grey number at the top of the message. This number denotes the amount of  messages from that sender and when I view the most recent message in my mailbox (from that sender) all of the older messages load with it and this takes a while for the message to become moarked as "read." I know that I can turn this off because I have mountain lion on my air and i do not have this issue. how can i turn it off?
    thanks

    thanks so much, that fixed it! before I posted this quiestions I kept looking in the mail preferences but I dind't think to look on the View menu.

  • How to select the most recent date in a CR XI subreport

    Post Author: rickcf
    CA Forum: General
    I have a sub report and it is simply a reporting of a sub table.  It is a table that has multiple records with many dates coupled with types.  I only want the most current date for certain types - the types can have more than one date.  Much like the following select statement
    select type, max(date) from table where type <> 'E' group by type.
    How can I accomplish this in crystal? 
    Thanks

    Post Author: Jagan
    CA Forum: General
    Group on type. Use record selection formula for type <> E, use group selection formula for the max date. e.g. group formula is{table.date} = maximum({table.date, table.type})

  • Select "most recent" records in abap

    Hi
    how can I select the most recent records in a table by using the abap select statement.
    Example: The 100 rows with the "highest" (most recent) sequence-numbers in a table with documents.
    somehow like this:
        SELECT "most recent" * FROM draw
        INTO TABLE gt_doklist
        UP TO 100 ROWS
        where ...
    Has anybody an idea?
    Thanks in advance,
    Willi

    Actually I believe that all the answers are wrong.
    I believe that there will never be a single statement. If you need to determine the last 100 records for a special user you first need to determine the highest document number.
    this can be done by
    select max( document_number ) into document_number from table where username = username.
    Any descending sorting order or group by etc. will never make sure that you get the last one. For a simple reason What should the select statement look like that makes sure (in combination of any cursor applied)? Its impossible!
    If you now need the latest 100 records for a single user its the same problem like buffered number ranges. There is no way to perform that task because there is no database routine or sql statement to do so. And 1.5 million records are too much to try out or select everything.
    You could do an assumption that the last 100 for that user have been posted during the last 1000 or last 10.000 records, select them and filter out.
    Alternative you can perform the following select statement for 100 times. Using an index on document number and user might not be such a performance killer if its only done for one user during his online dynpro process:
    data: max_number type char10.
    select max( documentnumber ) into max_number from table
      where username = username into [structure].
    max_number = max_number + 1.
    do 100 times
    select max( documentnumber ) from table intomax_number
      where username = username and docnumber lt max_docnumber.
    select * from [db_table] into [structure] where docnumber = max_number.
    append [structure] to [table].
    enddo.
    Of course that just draft coding... apply if statements and so on...
    Even though its pretty poor, its the only way to do. Any select statement will never garantee what records you will get if you do not restrict accordingly and if the restriction has to be made on document number, but if there is no way to get the max_number - [100 last records of this user], there is no solution using one statement.
    Thats it.
    Edited by: Rob Burbank on Feb 25, 2010 8:52 AM

  • Select most recent record prior to a target date

    Let's say I have a set of unique records with the following dates:
    11/15/08
    11/30/08
    Is it possible to select only the most recent record prior to a user-entered target date (e.g., 12/1/08)?  So in this case, only the record dated 11/30/08 would be selected for the report.

    Use the record selection formula like this
    {Date field}<={?Date Parameter}
    And also wrtite the group selection formula like this
    {Date field}=maximum({Date field})
    This returns the recent value nearer to the date entered in the prompt.
    Regards,
    Raghavendra

  • How to select Most recent record with rest of record in ascending order...?

    Dear Expert,
    I have one table called Tab1 & have a lot columns. For this schenario, i mentioned few of the columns.
    The columns are
    product_type varchar2(100),
    curr_date date (storing with time stamp),
    other1_cloumn varchar2(10),
    other2_cloumn varchar2(10)
    Now I want to display all the records in ascending order except most recent record for every product_type || Union all || Most recent records in ascending order in single query.
    For example...
    product_type curr_date date other1_cloumn other2_cloumn
    1, "10-May-2005 10:10:10", 10, 10
    1, "10-May-2005 10:10:11", 10, 10
    1, "10-May-2005 10:10:12", 10, 10
    1, "10-May-2005 10:10:09", 10, 10
    2, "10-May-2005 10:10:10", 10, 10
    2, "10-May-2005 10:10:11", 10, 10
    2, "10-May-2005 10:10:12", 10, 10
    2, "10-May-2005 10:10:09", 10, 10
    3, "10-May-2005 10:10:10", 10, 10
    3, "10-May-2005 10:10:11", 10, 10
    3, "10-May-2005 10:10:12", 10, 10
    3, "10-May-2005 10:10:09", 10, 10
    Now I want to display (OUTPUT) like...
    1, "10-May-2005 10:10:10", 10, 10
    1, "10-May-2005 10:10:11", 10, 10
    1, "10-May-2005 10:10:09", 10, 10
    2, "10-May-2005 10:10:10", 10, 10
    2, "10-May-2005 10:10:11", 10, 10
    2, "10-May-2005 10:10:09", 10, 10
    3, "10-May-2005 10:10:10", 10, 10
    3, "10-May-2005 10:10:11", 10, 10
    3, "10-May-2005 10:10:09", 10, 10
    1, "10-May-2005 10:10:12", 10, 10
    2, "10-May-2005 10:10:12", 10, 10
    3, "10-May-2005 10:10:12", 10, 10
    Plz, provide a solution....

    I want to display like...
    select * from tab1 where (product_type,curr_date) in
    (select product_type,max(curr_date) from tab1 group by product_type)
    order by product_type
    Union All
    (select * from tab1 where (product_type,curr_date) NOT IN
    (select product_type,max(curr_date) from tab1 group by product_type)
    order by product_type)
    But, In the above case, The ORDER BY Clause will not work...How to get this one...?
    I mean.. I want to display all the records in ascending order except Most recent record base on Product type and next I want to display Most recent record in ascending order. I want to display both cases in a single query...?

  • Remove the duplicate rows but keep the most recent and oldest records

    I have a Product table, some products have duplicate rows(same productID). I want to keep the most recent and the oldest records based on ETL load date (or min and max productKey), delete others. How to do this in a simple way?
    ProductKey | ProductID |ETL_Load_Date
    1001 | 501 | 2014-01-01
    1002 | 501 | 2014-01-02
    1003 | 501 | 2014-01-03
    1011 | 502 | 2014-01-01
    1012 | 502 | 2014-01-02
    1013 | 502 | 2014-01-03

    declare @table table (ProductKey int, ProductID int, ETL_Load_Date date)
    insert @table (ProductKey, ProductID, ETL_Load_Date)
    values
    ( 1001 , 501 , '2014-01-01' ), ( 1002 , 501 , '2014-01-02' ),
    ( 1003 , 501 , '2014-01-03' ), ( 1011 , 502 , '2014-01-01' ),
    ( 1012 , 502 , '2014-01-02' ), ( 1013 , 502 , '2014-01-03' )
    SELECT *
    FROM @table t
    INNER JOIN (
    SELECT MIN(etl_load_date) min_load_date, MAX(etl_load_date) max_load_date, ProductID
    FROM @table
    GROUP BY ProductID
    ) m
    ON t.ProductID = m.ProductID
    AND t.ETL_Load_Date IN (min_load_date,max_load_date)
    This will show both the min and max load dates, for each ProductID
    Thanks to Saeid for posting some test objects.

  • I can no longer manually select podcast episodes to download. It automatically downloads the most recent. I have been downloading a few episodes at a time due to the limited memory of my Shuffle. Is there a work-around?

    I can no longer manually select podcast episodes to download. It automatically downloads the most recent. I have been downloading a few past episodes at a time due to limited memory of my Shuffle. Is there a work-around for this?

    Similar problem here. My Ical refuses to edit or delete events. Viewing is possible, though sometimes the whole screen turns grey. Adding new events from mail is still possible. The task-pane completely disappeared. My local apple technic-centre messed about with disk utility for a bit and than told me to reinstall leopard. I could of course do that, but it seems to me that reinstalling Leopard just to fix iCal events is a bit invasive.
    I tried also tried removing everything, installing a new copy of iCal from the leopard-cd, software updates, all to no avail.
    At the moment I'm open to all suggestions that do not include a complete leopard reinstall.

  • I have thousands of photos.  When I select a photo and edit it I want to return to the Organizer where I left off.  I don't want to go to the most recent photo and have to find my way back to where I was.  Is there a way to make this happen?

    When I am in the Organizer and edit a photo I want to return to the Organizer where I left off.  I don't see that as an option--it always returns me to the most recent photo.  Is there a fix?  Thank you.

    Art,
    I am trying to follow your very precise steps, and in my case (PSE11 also, Win7), the focus stays on the edited picture after I return from the editor to the Organizer. I am pretty sure that in the previous post describing your situation, I was able to reproduce the problem, but I don't remember on which version. I just tried in 'Folders' view mode to edit in a selected folder, then I clicked 'All media' so that no folder was selected. Same result in both cases.
    Even if you prefer to work in folders view, you could take advantage of the ability to use 'albums'. It's a misleading word to describe a selection, a 'collection' of pictures, which you can sort as you want. It's a kind of  'playlist' like with music items. In the organizer, you can select a folder and create an album (even a temporary one) just by choosing 'create instant album'. Suppose you have made an album from a folder or a selection of highlighted pictures to edit. You can order them in date order, import batch or 'custom' order'. Since PSE12 you can also sort them in filename order. You should never lose the 'focus' on your last edited picture when coming back from the editor to the organizer. If the purpose of that album is only to help in organizing an editing session, you simply delete the album (the playlist) if you don't want to keep the list afterward.
    I hope someone will be able to confirm how that can happen...
    Edit;
    I have just read Brian's post.
    That may be the difference...

  • Until the most recent update when the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    Until the most recent update when the url that I wanted in the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?

    cor-el, thank you so much. That fixed it, but does this mean I can't use AVG Safe Search.Is there a substitute? I do like the security (hopefully real) that it offers. What now? How do I get out of Safe Mode?
    Sherry

  • 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')

  • Group and drill down and roll up by the most recent SCD2 type member in reporting period in SSAS

    Hello,
    I am new to SSAS and cube world so my problem might not be big of a challenge for you but it is for me.
    Here is my challenge :
    My simplified datamart relation star schema model looks like this (2 dimensions and one fact):
    DATE dimension - Date_Id, Date, Fiscal_Year, Fiscal_Quearter, Fiscal_Month, Calendar_Month, etc
     CLIENT dimension – Cient_SK, Client_Id, and two  SCD2 type fields : Status,and Class and, of course, Start_Date, End_Date to keep track of SCD2 along with a Current_Flag . I can have several records for the same Client_Id
    over a given reporting  period.
    FACT – Date_ID, Client_SK, Client_Id
    Fact table is daily snapshot that loads one record per client only if a client was active on that day.
    Requirement: 
    Count number of currently active clients group by  “Status” or “Class” with option to roll-up to the total count of clients
    Count total number of clients who were active in the specific reporting period (period can be fiscal year or fiscal quarter or a month) grouped by the most recent “Label” or most recent “Status” or most recent “Class” in that reporting period.
    I created a cube and created a measure “Distinct_Count” that does just that - distinct count on Client_Id. It works just fine for current date as well as for any given reporting period and I have nice rolling-up/down thru Fiscal_Year-Fiscal_Quarter- Month.
    But I am having problem grouping by any of 3 attributes with SCD2 type in CLIENT dimension. I do not know how to get the latest active value (member) in the reporting period
    Here is my CLIENT dimension:
    Client_SK
    Client_Id
    Status
    Class
    Start_Date
    End_Date
    Current_Flag
    14
    78
    fair
    B
    03/01/2008
    27/09/2012
    0
    73
    78
    very good
    C
    28/09/2012
    15/08/2013
    0
    89
    78
    Bad
    B
    16/08/2013
    24/09/2013
    0
    95
    78
    Good
    B
    25/09/2013
    03/10/2013
    0
    97
    78
    Good
    A
    04/10/2013
    01/12/2013
    0
    102
    78
    Average
    A
    02/12/2013
    31/12/2099
    1
    For example:
    If selected reporting period is  Fiscal_Quarter is Q2 that covers period Aug-Sep-Oct (Client_SK: 89, 95, 97) and if my client was active in that period, when I group active client’s count by “Status”
     attribute I need to count this client in the group “Good” since that was the most recent value for this client in this period (Q2) for this attribute (Status).
    I do not know if this is important but just in case: user interface  could be Excel application or any MDX enabled Microsoft or third party visualisation tool.
    Thanks in advance

    Hello Bob,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Regards,
    Elvis Long
    TechNet Community Support

  • How to read only the most current records in PL/SQL

    Oracle version: 11.2
    I have a table in ORACLE called RATES and there is a EFFECTIVE_DATE, RATE_NAME, RATE_AMOUNT
    RATE
    1 RATE_ONE 1/1/2000 0.10
    2 RATE_ONE 5/1/2005 0.15
    3 RATE_ONE 12/1/2010 0.20
    4 RATE_TWO 10/15/2009 0.33
    5 RATE_THREE 9/7/2011 0.05
    6 RATE_THREE 12/31/2011 0.06
    A rate can be in there multiple times, but the most recent rate is the active rate. I need to query this table and only want to bring back the currently active rows:
    RECORDS 3, 4 and 6
    How can I do this in the most elegant way?
    Can I say:
    SELECT RATE WHERE trunc(sysdate) between EFFECTIVE_DATE and trunc(sysdate);
    (this will not work. I'm not sure how to do this without an exp date column and then I could say
    SELECT RATE WHERE trunc(sysdate) between EFFECTIVE_DATE and END_DATE
    The problem is that I cannot add that column at this time, so need to find a way to do it programatically
    Edited by: userLynx on Feb 1, 2012 8:56 AM

    Try This:
    WITH a
            AS (SELECT 'RATE_ONE' ratename,
                       TO_DATE ('1/1/2000', 'mm/dd/yyyy') eff_date,
                       0.10 amount
                  FROM DUAL
                UNION ALL
                SELECT 'RATE_ONE' ratename,
                       TO_DATE ('5/1/2005', 'mm/dd/yyyy') eff_date,
                       0.15 amount
                  FROM DUAL
                UNION ALL
                SELECT 'RATE_ONE' ratename,
                       TO_DATE ('12/1/2010', 'mm/dd/yyyy') eff_date,
                       0.20 amount
                  FROM DUAL
                UNION ALL
                SELECT 'RATE_TWO' ratename,
                       TO_DATE ('10/15/2009', 'mm/dd/yyyy') eff_date,
                       0.33 amount
                  FROM DUAL
                UNION ALL
                SELECT 'RATE_THREE' ratename,
                       TO_DATE ('9/7/2011', 'mm/dd/yyyy') eff_date,
                       0.05 amount
                  FROM DUAL
                UNION ALL
                SELECT 'RATE_THREE' ratename,
                       TO_DATE ('12/31/2011', 'mm/dd/yyyy') eff_date,
                       0.06 amount
                  FROM DUAL)
    SELECT ratename, eff_date, amount
      FROM (SELECT ratename,
                   eff_date,
                   amount,
                   RANK () OVER (PARTITION BY ratename ORDER BY eff_date DESC) rk
              FROM a)
    WHERE rk = 1

Maybe you are looking for