Sorting Date and Time

Hi Everyone,
I have requirement to sort date and time fiields in an internal table.
The internal table looks something like this during runtime.
Line  Objectclass      UDATE            UTIME   OBJECTID         CHANGENR   CHANGE_IND
8     ISU_EEIN     20080305     144814     000000000111     0000035262       I
9     ISU_EEIN     20080305     145735     000000000112     0000035281       I
10     ISU_EEIN     20080305     151418     000000000113     0000035319       I
11     ISU_EEIN     20080305     154931     000000000114     0000035378      I
12     ISU_EEIN     20080305     155002     000000000115     0000035389      I
13     ISU_EEIN     20080305     162803     000000000116     0000035400      I
14     ISU_EEIN     20080306     095028     000000000113     0000035450       U
15     ISU_EEIN     20080306     123835     000000000117     0000035613      I
16     ISU_EEIN     20080306     133532     000000000118     0000035628      I
Now if you observe Line 10 and Line 14.
OBJECT ID has two entries. One with Change_Ind 'I' on 05.03.2008 and 'U' on 06.03.2008 ,
so here I need to have only ie... Line 14 for objectid 113 after sorting and deleting.
The current sort stmt which i am using is not solving the purpose,
Can you guys help me as how to achieve the result?
Awaiting your replies.
Regards,
Vinay

Hi,
Did not achieve the desired,
Just for your information the internal table is as follows.
objuectclas  udate      utime    objectid         changenr      change_ind
ISU_EEIN 20080305 144814 000000000111 0000035262     I
ISU_EEIN 20080305 145735 000000000112 0000035281     I
ISU_EEIN 20080305 151418 000000000113 0000035319     I
ISU_EEIN 20080305 154931 000000000114 0000035378     I
ISU_EEIN 20080305 155002 000000000115 0000035389     I
ISU_EEIN 20080305 162803 000000000116 0000035400     I
ISU_EEIN 20080306 095028 000000000113 0000035450    U
ISU_EEIN 20080306 123835 000000000117 0000035613     I
ISU_EEIN 20080306 133532 000000000118 0000035628     I
If i use the delete statements only 1 entry will remain.
Because i have to have only the latest record if it was updated,
since document 113 was updated on 06.03.2008. I should have only one record.
My result should be as follows.
ISU_EEIN 20080305 144814 000000000111 0000035262     I
ISU_EEIN 20080305 145735 000000000112 0000035281     I
ISU_EEIN 20080305 154931 000000000114 0000035378     I
ISU_EEIN 20080305 155002 000000000115 0000035389     I
ISU_EEIN 20080305 162803 000000000116 0000035400     I
ISU_EEIN 20080306 095028 000000000113 0000035450    U
ISU_EEIN 20080306 123835 000000000117 0000035613     I
ISU_EEIN 20080306 133532 000000000118 0000035628     I

Similar Messages

  • Sort by Creation Date and TIME!

    I need to sort hundreds of images taken by three photographers and on six different cameras. I sort by Image Date, but it keeps each photographers images together, seems to sort by DATE only, then by file name.
    I have used iView Media Pro to sort this way and it is a GREAT way to organize this type of work. Is there a way to refine how Aperture 1.5.1 does this type of sort?
    At this point, my option appears to be to export my final picks, then resort and rename them in iView Media Pro.

    In the browser section, I clicked on the list view (control-L is the shortcut) and then clicked on the "Image Date" header, and saw all my images sorted by date AND time. Is this what you're looking for? If all the photographers shot on the same date and time, then they'd be intermingled I suppose, but if the times were separated, this should work. Give it a shot anyway.
    Mark

  • When I create a calendar, in iphoto 8, I had an information pane lower left corner with date and time of the picture. Can it possibly be that the iphoto developers forgot about that in iphoto 9? This was very helpful when placing images according to date.

    Today I updated to the latest iphoto version. The update itself went smooth and nice as one is used to from Apple. But when I wanted to finish my already started calendar, I have encountered two problems. The first is that I can't view the aperture library anymore directly from iphoto. Instead I have to open the iphtoto library in aperture but then my calendar isn't there. So now I have to copy images back and forth. No problem.
    However, the old iphoto had a small information area in the lower left corner which was very nice to place images on an exact date. This seems to be gone...?? Really? How am I supposed to sort images according to date and time when I have to back to the library view every time? That's not very convenient..Or am I missing something?
    Thanks for ANY help!
    Patrick

    The first is that I can't view the aperture library anymore directly from iphoto.
    THat is exceeding strange since iPhoto '08 could not open or share an Aperture library - that ability was first introduced in iPhoto '11 - with the latest version of iPhoto and or Aperture you can open the same library with either application - http://support.apple.com/kb/HT5043
    In the current version of iPhoto the photos are sorted by date in the film strip - I've not recently done a calendar so do not remember the specifics -
    LN

  • Adjusting date and time does not work for pictures from one camera.

    I have a set of pictures taken with a Casio EX-Z20 camera in my Aperture 2 library. Because the clock of this camera was off by a few hours I changed them all at once with the option "Adjust date and time...". This worked well and when I sorted the images from different cameras by date in Aperture they were in the order.
    When exporting all the images as JPEG the images in the set from this camera was reset to it's original.
    That was very strange, I decided to try and change the date of these images in the master files as well by checking the checkbox "Also change master files".
    When I change the date from 15-10-2008 18:34:44 to 16-10-2008 10:34:44 (+16 hours) the date of the image changes to 16-10-08 01:36:43 GMT+02.00 (+9 hours, 1 minute, 59 seconds).
    When I change the date from 16-10-08 01:36:43 to 16-10-2008 19:36:43 (+18 hours) it ends up as being 16-10-08 10:38:42 (+9 hours, 1 minute, 59 seconds)
    When I change the date from 16-10-08 10:38:42 to 16-10-08 10:48:42 (+10 minutes) it ends up as 16-10-08 01:50:49 GMT+02:00 (-8 hours, 47 minutes, 7 seconds)
    I have worked around this problem by adding some hours to the desired time and eventually got it about right, but this is still a very annoying problem. Has anyone else encountered it or know of a way to avoid it?

    {quote:title=JohniBook wrote:}
    Has anyone else encountered it or know of a way to avoid it?
    {quote}
    I certainly have had issues regarding wrong dates, time stamping and DNG's in Aperture. There have been posts here from others as well with the same kind of date problems.
    I have reported the bug to Apple and hope for a solution to the issue in a near future.
    Regards
    Paul K

  • How do you fix the date (day number only) in menu bar to match correct Date and Time Preferences?

    My date and time preferences all show up as correct and I get "Sun 10:54 AM" in the menu bar (correct), but when I click that to quickly get the day's date, I get "Sunday, August 5, 2011".  The '5' is the only thing that is wrong, and it has remained '5' for the last 3 days, even thought the Date & Time Preferences are correct.  Is there any easy fix for this?  I don't know if August will change to September, but the day of the week has kept up with time!

    I know how to get the full date and time, etc. to show up on the menu bar (and it shows up correctly), so it's just a little 'glitchy' thing that when you click on the date/time in the menu bar, the greyed date remains on the '5th' of August - sort of like that Groundhog Day movie!

  • My new Nokia Lumia 800 changes date and time after...

    When i switch off and on my Nokia Lumia 800, date and time changes: from 2 september 2012 8.00 to 2 march 2013 14.00. I need help to understand this strange problem and find a solution.

    chrysale wrote:
    I had the same problem with my Lumia 800. The Lumia 800 kept changing time and date as soon as I switched it off and turned it back on. In my case, doing a HARD RESET helped to fix this. BEWARE! You will lose all your data!
    Switch off your phone, hold Volume Down, Power, Camera buttons down. Switch phone on. As soon as it vibrates, release Power button, keep Volume Down and Camera button pressed for a few seconds.
    I have the same problem and after going through all the various support sites- Nokia, O2, and endless forums I was told the same thing "Make sure your auto-update for date and time is switched to automatic" But after telling them I don't know how many times that my Lumia 800 didn't have this option, only a 24 hours switch I was told there was nothing that could be done. However I appear to have sorted it out myself. The problem appears to be (or on my phone at least) is wi-fi connection, before I turn my phone off I have to disconnect from wi-fi and when I turn the phone back on the date and time stays corrected.
      When I set the date and time manually (for the 3000th time!!) I held in the power button until the slide down close screen disappeared then released it and the phone restarts, then I done it again- same proceedure just to be sure and ever since the date and time has stayed correct. BUT BE SURE TO TURN OFF WI-FI BEFORE SWITCHING PHONE OFF. Hope this helps

  • How can I make the last photo taken display first (Arrangement by date AND time)?

    In PSE 3 Organizer, if I choose Arrangement -> Date (Newest First), it puts the photos I took yesterday first, but within a day, it puts the oldest first. In other words, all of yesterday's photos are first, but the ones taken in the morning appear before the ones taken in the afternoon. I really don't think it worked like this when we first got the software, and I'd like to know how to fix it.
    If I choose Arrangement -> Date (Oldest First), it seems to work correctly, sorting by date and time so that the oldest photos really are first.
    Does anyone know how to fix this? I'd really appreciate the help.
    Michelle

    What you are seeing is the default behaviour, which I think is logical - I like to see my latest batch of work near the top, but have them appear in the order I took them. There is an option in Edit/Preferences which lets you have the oldest first.

  • Bug or Feature:  pictures not ordered by date and time taken

    Is this a bug or a feature? 
    Pictures are not displayed in the sequence (order) they where originally taken (timestamp of the camera), when
    - importing pictures via camera connection kit
    - importing pictures via photo stream
    - when editing pictures these.
    I believe, Apple chose the date and time the picture file was created or last edited.
    I'd rather have the pictures sorted by the time they were taken so I have all pictures in chronological order.
    What about you?

    Hi
    I had a lot of problems sorting the display order on my two iphones and ipad
    The order displayed is 'Date taken' and then 'Date modified', but any photo without a 'date taken' will appear at the bottom , not the top
    goto to this link, have a read of my post
    https://discussions.apple.com/message/21098432#21098432
    Hope this helps

  • To find the latest date and time

    HI all,
    I have a Ztable which contains execution date and exe time.
    1) I need to find the latest date and time How  can we do this?
    2) In my program,I need to insert some values to date,time and status field in Ztable. How can I insert it directly into the table?
    for eg ZTAB-DATE = 010122006
            ZTAB-TIME = 12.20.20
          just INSERT ZTAB is enough or NOT????????????
    POINTS WILL BE REWARDED
    THANKS IN ADVANCE

    1) You can do a number of things, one you can get all of the relevant records and sort the internal table by date and time in decending order, then simply read the first record of the internal table.
    2) It depends on the key of the table. Say for example, you have a table like so.
    MANDT
    KEYFIELD
    DATE
    TIME
    If the key alreays exists, you can use the modify statement to update the record, if it dosn't exists, you need to use the INSERT statement to insert the records.
    data: xtab type ztable.
    xtab-keyfield = 'ABC'.
    xtab-date = '20070207'.  " or sy-datum
    xtab-time = '221600'.    " or sy-uzeit.
    insert ztable from xtab.
    Make sure to use internal fomat for DATE and TIME.
    Regards,
    Rich Heilman

  • Resetting the date and time after the phone has be...

    Hi,
    I keep having to reset the date and time very time I turn my phone off. I was thinking it was to do with the battery so I fully charged it, turned it off then turned it on again and it asks me for the date and time.
    I only noticed this because I've had exams and I have to turn my phone off for them.
    Could it be a dying internal battery?
    I know with computers there's a BIOS battery that controls date and time. When they start to die the date and time are inaccurate.
    I'll have to find time to take it to the 3-Mobile shop either on Sunday or sometime next week if it is an internal battery problem.
    Thanks,
    Omar
    "A Jade stone is useless before it is processed; a man is good-for-nothing until he is educated."

    Hi omar3256
    I believe that there is a very small component on the motherboard which serves this purpose, although whether battery or sort of capacitor I am not certain. The N80 especially seemed to be prone to this failure.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Changing date and time on photos

    I changed the date and time of some of my photos in iPhoto, and I kept the original date/time for others. When I merged the two in iPhoto, they fell chronologically, which is what I wanted. But when I created a generic file on my desktop and moved the files from my iPhoto to this folder, the photos got mixed up.
    How can I sort these photos--that are now out of iPhoto--by the date that I gave them in iPhoto? Do these changes made in iPhoto not permanently stay with each picture?

    avarda
    Actually you can't.
    It's quite possible to have a photo taken on January 1 2000 in a file created yesterday.
    When iPhoto sorts the photos on date and time it is reading the Exif data in the file about the Photo.
    When the Finder sorts on date and time it's reading the Date Created and Modified of the file. The Finder does not know about Exif data.
    Yes the Exif data (and the changes you made) travel with the Photo, but that's only of use in applications that know about Exif data - which is just about every photo application on the Planet - but the Finder is not a Photo app.
    To do what you want: Now that you have the photos arranged in iPhoto, select them and go File -> Export: Kind: jpeg and look at the naming options in the dialogue box: Explore Fiename -> Sequential. Then, in the Finder, sort on Filename.
    Regards
    TD

  • Printing current date and time on each page

    I'm often printing several versions of a document (e.g. a paper in progress). To keep track of the printouts I would like to print the date and time of printing onto each page, regardless of which application I'm using (although it would be okay if it works for PDF files only, if it happens automatically). I have seen Windows printer drivers including this feature, but haven't found any settings here (e.g., Canon iR3225) nor any hidden-CUPS-feature-I-could-activate-in-the-config-file.
    Any ideas? Some sort of preprocessing I could inject into cups?

    I agree with Greg. I had a quick look through the cups settings and could not see what you want. The closest thing would be a cover page, which you can also do via the standard print dialog.
    And checking the iR32xx series printer driver on Windows 7, there is no feature to print the date/time within the driver. So as Greg has mentioned your reference to Windows having this feature must be via an application rather than a driver setting.

  • Data and time

    Hello fellow Numbers-users!
    I've been using excel spreadsheat earlier, but I thought I might use numbers; since I'm on mac.
    My idea is to calculate my income each week, since work also wants my sheat for each week.
    Now my problem is that I work funny houer's for example I work:
    14:00-21:30 depending on if it's a weekday, holiday or regulear evening; I get extra. Can it be done with numbers or should I just stop my idea there?
    extra_pay_1 mon-fri between 19-22 its extra 20/per worked h
    extra_pay_2 mon-thur between 22-06 its extra 50/per worked h
    These extra_pay are refered to as OB (obekväm arbetstid) in my sheat.
    Was hoping for an example, or to know if it's even possible for numbers to sort this out.

    Hi jon-eric,
    This may help with part of the problem.
    This is simply to illustrate a way of testing for mon, tue, wed, thur, fri without lots of IFs
    C2 contains this formula (and Fill Down)
    =DAYNAME(B2)
    That was simply for me to check that all is working! You don't need this column.
    Now for the formula to help you.
    D2 contains this formula (and Fill Down)
    =WEEKDAY(B2,2)
    The 2 makes Monday day 1 of the week:
    Now you can use weekday less than 6 to check for mon, tue, wed, thur, fri
    That will reduce the number of IFs.
    (You don't have to display the day name in B. It works with any Date-and-Time format).
    Regards,
    Ian.

  • Show the last edit date and time ?

    I can't find a way to see the actual date and time of the last edit made. I see where you can sort the view by this in grid mode.
    Has anyone figured this out?
    Thanks.

    You can see it in the Metadata panel with the EXIF or ALL sets. There isn't a way to display it on the image using View Options, however.

  • How do I Show date and time when I hover over clip like in iMovie

    How do I get FCPX 10.6 to show date and time when I hover over a clip? I can so it in I movie and as I move over my clips the date/time is shown. I need it for that specific point in the clip not just the record start time.

    I realize that my needs are outside of the normal editing workflow. I am a private investigator and last week I shot over 6 hours of surveillance video on a Sony video camera. Within this 6 hours of video there is at most 2 minutes of actual footage of my subject. So what I wanted to do was just import the parts of the clip I want, so I can avoid importing the whole 6 hours, and then add a text title of some sort that shows the date/time. My problem is that once I get this clip I have easy way of establising the TOD short of taking the clip capture time and then counting up using the SMTPE Timecode. In this regard iMovie makes it easier because I can just hover over the clip and see the TOD of that specific frame. iMovie on the other hand would force me to import the whole 6 hour video so i'm left moving between both programs which is less than ideal.

Maybe you are looking for