Retriving records with the date and time stamp

I need to get all the records that were update between 08:36:06 AM and 8:36:09 AM on the12/15/2009
I am using this query it is giving me the right numbers (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I would like something more
precise using the date and time stamp with the dates
12/15/2009 08:36:06 AM
12/15/2009 08:36:07 AM
12/15/2009 08:36:08 AM
12/15/2009 08:36:09 AM
select * from GURMAIL
where
PERMAIL_CPLN_CODE = 'UGAP'
AND TO_CHAR(PERMAIL_ACTIVITY_DATE,'MM/DD/YYYYHH24:MI:SS AM') >= '12/15/2009 08:36%'Thank you

Yes, but HH24 and AM cannot be used together:
SQL> select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual;
select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual
ERRORE alla riga 1:
ORA-01818: 'HH24' impedisce l'uso dell'indicatore meridianoUse this:
select *
from   gurmail
where  permail_cpln_code = 'UGAP'
AND    permail_activity_date between to_date('12/15/2009 08:36:06', 'mm/dd/yyyy hh24:mi:ss')
                                and  to_date('12/15/2009 08:36:09', 'mm/dd/yyyy hh24:mi:ss')or this:
select *
from   gurmail
where  permail_cpln_code = 'UGAP'
AND    permail_activity_date between to_date('12/15/2009 08:36:06 AM', 'mm/dd/yyyy hh:mi:ss am')
                                and  to_date('12/15/2009 08:36:09 AM', 'mm/dd/yyyy hh:mi:ss am')Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]
Edited by: Massimo Ruocchio on Dec 23, 2009 12:05 AM

Similar Messages

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • How do I find the date and time stamp on pictures?

    How do I find the date and time stamp for my pictures?

    The Photos app will not do this but other apps will. iPhoto has an icon that when tapped with the photo open will show the EXIF information you are looking for. iPhoto is not free but you can purchase it in the App Store.
    There may be other photo apps that provide this information as well.
    PhotoForge2 will show the EXIF data as well as the GPS data if it is available.

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • When i restart, the top bar with the date and time, networks, battery life etc.. all disappears and theres only the finder icon which gets stuck for some reason and wouldnt work either!

    When restarting my macbook pro, all the options on the top right corner of the screen disappear ( battery life, Wifi, languages etc..) when i try to show them in system preferences once i click on network preferences the whole system preferences goes Not responding and i have to force quit it. the only way i found to bring them back is restarting my computer a number of times till they just come back alone. not sure what the problem is??? now i never shut down my computer cause i am worried i'll lose them again and for months i just put to sleep when i am done since nothing happens to them when its on sleep once i shut it down and turn it on again the same thing happens.
    appreciate any answers...

    You sure you're in the /Users/username/Library/Preferences/ folder? If yes, then that's your issue. That plist controls the right-hand menu bar.
    log into a newly created admin user account and see if the problem persists. Then, check its Preference folder for that plist file.

  • How can i get a copy of my ipone messages with the number, date and time stamp?

    How can I get a copy of my iphone messages with the number it was sent from and the date and time stamp?  Needed for court purposes.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    You should probably consult your attorney to see if either of these will be acceptable.

  • DATE and TIME Stamps

    I'm a relative newbie still having issues with getting date and time stamps on my printed documents.
    I use Preview, Pages, Numbers and also tend to print to PDF a lot, which I am opening in Preview.
    I have found an "Insert" ability in Pages but for some reason it appears to only give me the date that I inserted the Timestamp.
    Can anyone help me figure out my options in Mac for putting the following on a document:
    A. DATE and TIME printed
    B. NAME of document with LOCATION (I assume this is software specific?!)
    Thanks for any help with this.
    - Jon

    Yes, ...and I was hoping to find a solution since I sometimes have the same problem!
    But I'm afraid there is none. For sure I didn't find any fxscript function returning Date&Time. At the moment the best solution I know is what you suggested, Ian: capture twice, once in FCE for editing and once in iMovie for reading Date and Time.
    I'd be glad to write and share a plugin displaying date and time if somebody is able to tell me what fxscript function (if any) should I use...
    Piero

  • Date and time stamp of user status does not appear

    Hi, gurus.
    For a specific transaction type, the date and time stamps for certain user statuses do not appear within the transaction although these missing date/time stamps are captured in the database upon checking by our ABAP.  It seems that this problem started when I added several statuses and rearranged their status numbers in the status profile last year.
    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions. 
    E.g.
    Status Profile                                                                               
    Status No.     ---       Status Code      ---            Short Text                                       
    10            ---                    IP1L                   ---       In Process 1st Level                        
    20            ---                    IP2L                   ---       In Process 2nd Level                          
    Date Profile
    Display Position   ---       Date Type
    1                          ---       In Process 1st Level       
    2                          ---       In Process 2nd Level
    We're going to create and assign a new status profile for the concerned transaction type.  We'll make sure that this status profile is sychronized with the date profile.  Hopefully, the date/time stamps will all be displayed in prospective transactions but the problem on the missing date/time stamps in historical transactions will still remain.
    Pls. help us.
    Thanks in advance,
    Theresa

    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
    No

  • Date and time stamp transfer via Firewire

    Hi
    Having issues with a Sony micromv camcorder transferring digital recordings via fire wire to Apple macbook- the files are transferrred without the date and time stamp on it. Any way around the problem. Thanks

    ebigglesworth,
    I too am curious about Frank's mention of the date and time removal tool.
    As an aside to your comment:
    I'd rather just be able to tell aperture I don't want the time stamp on the image, to remove it some how digitally, if that makes sense. You'd think it could just be backed out in some fashion.
    That's impossible. Your camera made it impossible. Your camera threw out some pixel data of the real picture in favor of replacing it with yellow, white, and black pixels (or whatever color your timestamp is). Basically, the original photo information is completely lost. All you can do is smudge things (in one way or another) and make the best of it. It will never look completely right unless you use a pixel editor (which Aperture is not) and painstakingly put color in, pixel-by-pixel.
    nathan

  • Date and Time Stamp Removal?

    Does anyone know how to digitally remove the date and time stamp on the face of the photo once the photos are loaded in Aperture, short of doing re-touch? Working in Aperture 3.

    ebigglesworth,
    I too am curious about Frank's mention of the date and time removal tool.
    As an aside to your comment:
    I'd rather just be able to tell aperture I don't want the time stamp on the image, to remove it some how digitally, if that makes sense. You'd think it could just be backed out in some fashion.
    That's impossible. Your camera made it impossible. Your camera threw out some pixel data of the real picture in favor of replacing it with yellow, white, and black pixels (or whatever color your timestamp is). Basically, the original photo information is completely lost. All you can do is smudge things (in one way or another) and make the best of it. It will never look completely right unless you use a pixel editor (which Aperture is not) and painstakingly put color in, pixel-by-pixel.
    nathan

  • My laptop died last night and the date and time was set for 1/1/2000. I went to change the date and time and cannot. For some reason when i pull up system preferences it will not load date and time but will load other stuff. Please help.

    Last night my laptop died and the time and date was reset. I cannot acess date and time preferences to change it and my laptop is acting really weird. My CD drive is broken so there are no options to put in a cd. Please someone help i need my laptop for school and cannot afford another.

    Many system actions will misbehave, given an inaccurate date. Resetting the NVRAM and / or SMC will not fix it, and if the system has a preposterous date you may not be able to open System Preferences to correct it. This dilemma may or may not be addressed in a future OS X update.
    If you cannot open System Preferences you can reset your system date and time using Terminal.
    Please read everything that follows before proceeding. Write them down if necessary because the effects of setting a preposterous system date are unpredictable.
    Quit System Preferences, force quit if necessary: OS X: How to quit an unresponsive application using Force Quit
    Open Terminal - it is in your Utilities folder and looks like this
    You can find Terminal by using the Finder's Go menu and choosing Utilities, then double-click the Terminal icon.
    At the prompt, you will be typing a command resembling the following:
    sudo date mmddhhnnyyyy
    ... but you must substitute the actual date and time in the command that corresponds to the date format used for your location. In other words if your custom is to use a date like 8 February 2014 then reverse the mm and dd values.
    Substitute numerals in the above command according to the following:
    mm = month
    dd = date
    hh = hour (24 hour format)
    nn = minutes past the hour
    yyyy = year
    Each of those values must be two digits except for the year which can be two or four digits. As an example if the current date and time is February 8, 2014 at 9 PM your command will be the following:
    sudo date 020821002014
    or
    sudo date 0208210014
    Either one will work. If you enter nonsensical values the system will attempt to parse the entry correctly.
    To recover from your inability to use System Preferences to set the date and time, the value entered does not have to be precise, it just has to be approximate.
    Enter that command using the actual time and date for your location and in the appropriate format, then press the Return key. Terminal will ask for your Admin Password - the same one you use when you log in to your Mac. Type it and then press the Return key. What you type will not appear, not even with •••• characters.
    To determine if your change was effective just type the date command and press the Return key. Terminal will reply with the date and time. If it appears correct and in the correct format, you should be able to open System Preferences > Date & Time once again. Selecting the "Set time and date automatically" and choosing an appropriate time server will adjust your Mac's system clock to the precise time.

  • Date and Time Stamp - Data Code

    I am trying to import HD video from a Sony video camera to iMovie, but require date and time stamp data code to display on the video.  The computer imports the video in HD without problem, but does not display the data code information.  Options allow for adjusting the date and time within the video clips, which proves the code is in there somewhere, but there are no options to display the date and time stamps. 
    I have previously accomplished this by running the camera in real time through a Pinnacle movie box, but this is time consuming, and hinders video quality, rendering in standard definition. 
    Can anyone please assist? 
    Thanks

    Date stamp data is not something read by FCP ... try iMovie,
    Alternatively, check the camera's output options, it may be possible to output the data burnt-in on the s-video or some such ... if you have the requisite i/o hardware you could then digitize from that signal path

  • Date and time stamp question

    Is there a way to drag the "date and time stamp" to my project all at once, or do I have to continue to drag it to each individual section of my project?
    Thanks

    Hi,
    I don't find any function module, but it does'nt really hard to code this using DIV and MOD instructions :
    If you've got your time in seconds :
    w_day = w_time DIV 86400.
    w_mod = w_time MOD 86400.
    w_hour = w_mod DIV 3600.
    w_mod = w_mod MOD 3600.
    It doesn't seem too bad in term of performance....
    Mathieu

  • The date and time on my ipod nano 7th gen keeps on changing

    Hi,
    Since i bought my iPod Nano 7th gen, ive been having problems with the date and time. Every time i change it to the actual time and date, it changes after a while. Does this happen with anyone else? Would there be a problem with my iPod?

    Well after i change it it seems fine, but when i use it another time it has been changed.

  • In Numbers, how do I lock in the date and time data when an IF/THEN formula is used with the "NOW" function?

    In Numbers, how do I lock in the date and time data when an IF/THEN formula is used with the "NOW" function?
    =IF(I127,NOW()," ")
    I127 equals a check box. The formula retuns a value of the current date and time when a check is placed in the box. How does one lock that date and time so that it cannot be changed?

    I don't think it is possible to lock in the date and time using a formula. You could put NOW() in a cell, copy, and Edit Paste Formula Results where you want the result.
    Or if you are "time stamping" a lot, you may find this Automator Service (Dropbox download) helpful. It puts a "Today" function (actually it should be named "Now" because it includes both date and time) in your Services menu like this:
    Just doubleclick the .workflow package to install it. You may have to click "download anyway" in System Preferences > Privacy & Security.
    If you want you can assign the service a keyboard shortcut in System Preferences here:
    SG

Maybe you are looking for

  • Constantly Needing to re-add my computer to itunes match?

    Recently, my main computer seems to be disconnecting from the itunes match service every time I close itunes and re open it.  the cloud icon gets the lightningbolt on it.  this is the computer connected to my library, which is on a network drive - al

  • RTE not working in chrome and mozilla

    Hi     I have an urgent issue.. My RTE is not working in chrome and mozilla.. It is showing up in my dialog; but when i enter data and submit it is not storing in CRX. Also non of the plugins is active Any help weill be appreciable Thanks Veena

  • Strange CBO choice

    Hi guys, I'm runing some tests to check weather processed_flag should have NULL for already processed values or not. I thought that having a smaller index on the processed_flag column should be better. Check the following example: CREATE TABLE proces

  • No SMSs being delivered on Nokia 1650

    Hi, I have two friends in India in the same city, both of them use mobile connection with the same IDEA network. One of them is able to receive my sms messages which I'm sending from the UK and the other one is not able to receive any messages and th

  • Mac Problems with Flash Player 10.3.181.34

    Hallo, I have installed Flash Player 10.3.181.34 and it works fine, when I tried to change my desktop-picture in the system settings it doesn't work. There was a crash-report that told me: Perhaps the crash comes from the flash-plugin. After I uninst