Where date is 1 hour ago

Hi Friends,
I have a table T1 with a date column d1.
How can I select all data from T1 where date is greater than 1 hour ago?
Please help...
Thanks a lot,
Ms K

Hi,
user_unlimited wrote:
thanks for the good explianation Frank,
is it the same as sysdate-1/24?Is what the same as sysdate-1/24?
Do you mean
SYSDATE - (1 / 24)?
Yes, it's the same.
What are the differences?
(a) capitialization (sysdate vs. SYSDATE)
(b) parentheses (1/24 vs. (1/24))
(c) spacing (1/24 vs. 1 / 24)
None of them change the meaning in this case.
(a) It doesn't matter how you use capital or small letters outside of quotes. SYSDATE and sysdate are equivalent, and both are the same as SysDate or sYsdAtE. My personal style is to capitalize language elements, including built-in functions, such as SYSDATE. If you prefer some other style, that's not necessarily wrong.
(b) x - y / x is interpreted as
x - (y / z), and not as
(x - y) / z, but it's good practice to explicitly use the extra parentheses so that there's no possible doubt about what you're doing.
(c) Any amout of white space (spaces, tabs or newlines) is optional before or after parentheses or operators, such as /. You can use white space or not use it in those places as you like. I find code easier to read and understand when there is some white space on either side of an operator, and outside parentheses (that is, before a left-parentheses or after a right-parentheses).

Similar Messages

  • Send To Location via Content Organizer webservice changes Modified date to 5 hours ago

    I have 2 site collections in the same webapplication. The destination site collection has Content Organizer features turned on. I then created a Send To location using specifying the records center as <url>/_vti_bin/OfficialFile.asmx. I also created
    a SPD 2010 Workflow that uses the Submit File action to that same url.
    Before I perform the send/submit, the created and modified dates are both "a few minutes ago" in the source site collection.
    I then can do either Send To, or run the Workflow, and either way the document that is in the destination site collection has a Modified date of "5 hours ago". I also tried this with a document that does not match any rules, and it is sitting
    in the Drop Off Library with a modified date of 5 hours in the past.
    The timezone of the servers is UTC-6  (central), and so are the timezones of all web applications, and so are the regional settings of each site collection (including central admin). But since it's DST, it's actually 5 hours difference
    right now, that is the only clue I have. Of course it could also mean nothing at all.
    We are on SP2013 SP1, (the 1st SP1), Server 2012, SQL2012.
    I have not heard of this happening to anyone, but it's happening consistently for me in different environments. Can anyone help point me to where I can find the source of this error?
    Thanks
    Chris Buchholz

    Not really, it suddenly stopped happening.
    Probably it was fixed when I upgraded to the "real" SP1 (not the bad one they initially released) or I also upgraded to the Dec 2014 CU, which may have fixed it.

  • I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are not working I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                              

  • I've lost my iPhone5 like 40 hours ago. I already turned the Lost mode on with Find my iphone app. But my phone has no data plan so it could not connect to the internet at all. I reported to the police, too. What else can I do? Can anybody advise?

    I've lost my iPhone5 like 40 hours ago. I already turned the Lost mode on with Find my iphone app. But my phone has no data plan so it could not connect to the internet at all. I reported to the police, too. What else can I do? Can anybody advise?

    No...see the link I posted:
    If you did not enable Find My iPhone on your missing device
    If you did not enable Find My iPhone before it was lost or stolen, you can't use it to locate or protect your device, but you can still follow these steps:
    Change your iCloud password to ensure that no one else can use your device to delete or make changes to your iCloud data.
    Report your lost or stolen device to local law enforcement and your wireless carrier. Apple doesn't track or flag lost or stolen products, but you can use My Support Profile (supportprofile.apple.com) to find a list of serial numbers for products that you've purchased or registered with your Apple ID.

  • Getting records where date got hour or minute or seconds

    Hi,
    I have a date column in database in this format.
    yyyy-MM-dd hh24:mi:ss
    now I would like to find all the records where it got either hour or minute or second.
    Thanks,

    SQL> create table test
      2  as
      3  select 1 id, sysdate dt from dual union all
      4  select 2 , trunc (sysdate) from dual
      5  /
    Table created.
    SQL>
    SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi:ss'
      2  /
    Session altered.
    SQL>
    SQL>
    SQL> select *
      2    from test
      3  /
            ID DT
             1 26-10-2009 15:50:42
             2 26-10-2009 00:00:00
    SQL>
    SQL> select *
      2    from test
      3   where trunc (sysdate) &lt;&gt; dt
      4  /
            ID DT
             1 26-10-2009 15:50:42
    SQL>
    SQL> Edited by: Alex Nuijten on Oct 26, 2009 4:07 PM

  • I have no sound alerts on my iphone5. My software is up to date. I can hear on a call but I have no text alerts, no ringtones, nothing that involves sound! Everything was okay a few hours ago. I have no idea how this happened. Please help!!

    I have no sound alerts on my iphone5. My software is up to date. I can hear on a call but I have no text alerts, no ringtones, nothing that involves sound! Everything was okay a few hours ago. I have no idea how this happened. Please help!!

    I tried the compressed air, Qtip, etc... still nothing. Called Apple again.... and we did a complete factory reset from iTunes, wiping everything out... still no sound, which proves that it is a hardward problem, under warranty, I have to have phone replaced   No Apple repair centers within 300 miles of me! So... shipping phone off today. Bummer.

  • HT1657 I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the r

    I rented a movie a few hours ago and never finished it.  I can't view it on my Apple TV nor on my Computer.  When I go to rent it again it says you have already rented this movie, but I can't find it anywhere.  How do I watch the remainder of the rental?

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

  • For some reason, I can not delete bookmarks. I did one at a time, then tried 5 or 6 and it worked once then no more. I then tried 1 at a time and it worked once the no more. This is a brand new computer (Win7) and FF just loaded about 3 hours ago.

    # Question
    For some reason, I can not delete bookmarks. I did one at a time, then tried 5 or 6 and it worked once then no more. I then tried 1 at a time and it worked once the no more. Why is this happening? This is a brand new computer (Win7) and FF just loaded about 3 hours ago. Do not know how the bookmarks even got in there. Some were ok, but no order and some that were never bookmarks. Looks like FF tried to import some BM's from the Virtual XP installed, but did not get it any where near right. I need to completely delete all of them and install from a saved .html file.

    Well, I did not see the exact problem that I was having listed in the articles, BUT the problem is solved for now.
    I opened FF and the Bookmarks to Organize again. I deleted all of the folders and entries, ONE AT A TIME, AND IT WORKED. Evidently, for what ever reason, FF did not like "Batch" deletes of ANY amount greater than 1 and the HANG UP would occur.
    Deleting one at a time then importing the good .html from a good file, loaded the wanted Bookmarks. Yea

  • I switched from Internet Explorer to Firefox about 2 hours ago, and want to recover my previous "Favorites" bookmarks. How?

    Until two hours ago, we had a list of "Favorite" bookmarks that were lost after making Firefox our browser. How can I restore those items?

    You can find the Import menu entry in the Bookmarks Manager (Library)
    *Bookmarks > Show All Bookmarks > Import & Backup > Import Data from Another Browser
    *http://kb.mozillazine.org/Import_bookmarks
    *https://support.mozilla.com/kb/Importing+favorites+and+other+data+from+Internet+Explorer

  • My ipod is charging  like 2  hours ago!

    how to turn off or fix  my ipod  touch  if i turned it off but it is still charging (the screen is black with the sign of charging in the center ) i turned it off like 2 hours ago , help please!

    Oh, the spinning circle? I got confused when you said:
    (the screen is black with the sign of charging in the center )
    Try a reset: Hold the home and power buttons at the same time until the Apple boot logo appears. No data will be lost.

  • Organized pictures an hour ago, and now they're gone

    I'm so confused.
    An hour ago I was going through my photos in iPhoto, organizing them into events. I quit iPhoto and did other stuff.
    Then I reopened iPhoto ... and it told me it couldn't find my Library and asked if I wanted to start a new one. None of my pictures showed up in the Library. I tried Import, thinking maybe I could find the iPhoto library that had my pictures in it, but it wouldn't open the only one I could find, which was called Library.iPhoto.
    I can't find any of my pictures anywhere, not even by searching for them. What happened?
    Message was edited by: drmk
    Message was edited by: drmk

    It sounds like iPhoto lost the link to the iPhoto Library package. It is located in your Pictures folder. If iPhoto make a new library it probably is there also and named iPhoto Library_1. Check the Pictures folder to see if the library is there.
    If it is, check it's size via the Finder to make sure it contains your photos. Then launch iPhoto with the Option key depressed and, when asked, opt to Choose Library. Navigate to the Pictures folder and select the library.
    If that still doesn't help, try the three fixes below in order as needed:
    1 - launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select all options.
    2 - rebuild the library using iPhoto Library Manager as follows:
    Using iPhoto Library Manager to Rebuild Your iPhoto Library
    1 -Download iPhoto Library Manager and launch.
    2 -Click on the Add Library button, navigate to your User/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File->Rebuild Library menu option
    4 - In the next window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: It may take some time to create the new library if you have a lot of photos.
    3 - start over with a new library and import the Originals folder from your original library as follows:
    Creating a new library while preserving the Events from the original library.
    Move the existing library folder to the desktop.
    Open the library package like this.
    Launch iPhoto and, when asked, select the option to create a new library.
    Drag the Originals folder from the iPhoto Library on the desktop into the open Photo window
    This will create a new library with the same Events as the original library if you have the Finder checkbox unchecked in the Events preference pane.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • I purchase the iMovie app for hours ago, why is it taking so long to download.

    This app is stuck on half way through, I've downloaded it four hours ago. My software is up to date.

    It only downloads as fast as your internet connection allows it to download.

  • How can I get a date without the hour from sql server 2000 ?

    hellou!
    I have a JTable, and one of it's columns has to show a date. This date i have to show is specified as datetime on the Sql Server 2000 database where I have to take the data.
    the query of the dataset attached to the JTable is something like "select * from Table".
    The problem is that the JTable column that displays the date shows the date and the hour, for example:
    7/10/04 0:00:00
    and I need to show the date without the hour, only the 7/10/04. Can anyone tell me how to do that?
    thank you very much! : )

    The easiest way to format a date is with java.text.SimpleDateFormat. When creating it you pass a format string which can be used to parse or format date objects.
    SimpleDateFormat formater = new SimpleDateFormat( "MM/dd/yyyy" );
    // Get date objects directly from sql
    Date foundDate = result.getDate( 1 );  //where result is the ResultSet and 1 is the date column
    String formatedDate = formater.format( foundDate );Now the JTable's table model can be adjusted to store a formated String instead of a Date. If for some reason it is required to store the value as a Date overload the table model to return the formated string when getValueAt is called.

  • Session in status active started two hours ago is not in v$session_longops

    I have a session with status active. This session starts two hours ago.
    but if I query the v$session_longops to see how long I have to wait for that session I don't see it.
    And if I execute:
    execute dbms_system.SET_SQL_TRACE_IN_SESSION(429,15706,true);
    to trace the session
    oracle doesn't generate the trace file.
    Does someone know why?

    But since the OP stated the status = ACTIVE then there should be an active query. This is where the full Oracle version is important. Depending on the version if the active code is pl/sql then the pl/sql will not show when you check the v$session.sql_address and there have been issues with v$session_longops also.
    But just because a session has been connected for hours does not mean the SQL it is currently executing has been running for more than seconds. If the process includes commits then it may be nothing more than a long series of very short transactions and hence not long operations.
    Also the following two conditions must be true >>
    Set the TIMED_STATISTICS or SQL_TRACE parameter to true
    Gather statistics for your objects with the ANALYZE statement or the DBMS_STATS package << Oracle 9.2 Reference on v$session_longops
    HTH -- Mark D Powell --

  • "iTunes Accounts" System Service just used 1.1 GB of cellular data in 14 hours!

    Ttitle sums it up. 14 hours ago I activated my new iPhone 6 on T-Mobile, porting my number from AT&T. In this time, even though my phone has been on WiFi for over half of it, the "iTunes Accounts" System Service (Settings>Cellular>System Services) has used 1.1 GB of data. As far as I can tell, after searching extensively, this appears to be a record. Something is broken here, no?
    On my 5S (or 5, or 4S, or 4, or 3GS, etc... you get the idea) I averaged less than 1 GB of total cellular data usage per month.
    Anyone have any clue what's going on here?

    Following up... My carrier confirmed that this usage occurred within a 3 hour window, so it's even worse.
    I spoke with a Senior Advisor at Apple. You could literally hear the guy shuffling papers and mashing his keyboard. He had no clue what the iTunes Accounts system service actually is. He guessed at about 5 different things that are iTunes related (like Match - which I haven't used since switching phones), but none of his guesses could explain why 1.1 GB of data would be used in 3 hours. 1.1 GB would be like playing music off of Match for around 19 hours straight (assuming 128 Kb/s).
    I had to have been the victim of some sort of server side error on Apple's part. Something that probably only takes a few MBs to resolve, like my Match database (names of artists, albums, etc), probably got pushed a few hundred times. I can't think of any other explanation.
    Still open to ideas and hoping this isn't a every day occurrence.

Maybe you are looking for

  • ITunes won't open when I click on it

    In the past couple of weeks my iTunes library will not open when I click on it. I have tried uninstalling and installing iTunes and updating it but nothing works. Even plugging in my iPod will not open up iTunes.

  • How can I put a number like m.dddddd+Exx

    I don't know how can I put a number like m.dddddd+Exx or m.ddddddE-xx using DecimalFormat or NumberFormat

  • How can I edit my profile?

    I am trying to retrieve my password using my security questions. The first one asked is my date of birth which when entered is not recognized not matter how many times I enter it. I certainly know my date of birth and have entered it correctly. I wan

  • Basic details abt report painter

    hi, I am new to report painter, need to know some basic details abt report painter. And one example along with it Regards, Reni

  • Black Fri PS CC & LR5 deal misleading : only implies you need to be CS3 or above owner after order

    I was on the Adobe website, when I saw this Black Friday deal for Photoshop CC and Lightroom 5. Upon clicking Join now, I got to the following page : From this page, I then read both the FAQ and the terms. The FAQ said the following : And the terms s