Remove timestamp

Hi, This is my query using oracle 9i.
select NUMTODSINTERVAL(NVL(CLOSE_DT,current_date) - OPEN_DT,'DAY') from W_SRVREQ_D
Result:
NUMTODSINTERVAL(NVL(CLOSE_DT,CURRENT_DATE)-OPEN_DT,'DAY')
60 13:29:8.999999999
I want result as 60 only. Will remove times as 13:29:8.999999999
Help me.

user9522927 wrote:
Hi, This is my query using oracle 9i.
select NUMTODSINTERVAL(NVL(CLOSE_DT,current_date) - OPEN_DT,'DAY') from W_SRVREQ_D
Result:
NUMTODSINTERVAL(NVL(CLOSE_DT,CURRENT_DATE)-OPEN_DT,'DAY')
60 13:29:8.999999999
I want result as 60 only. Will remove times as 13:29:8.999999999
Help me.Use EXTRACT function
select EXTRACT(DAY FROM NUMTODSINTERVAL(NVL(CLOSE_DT,current_date) - OPEN_DT,'DAY')) from W_SRVREQ_D

Similar Messages

  • Can we remove timestamp which is added infront of the file name, in archive

    Can we remove timestamp which is added infront of the file name of datafile which was imported succesfully , in archive folder, i have a requriment to move file from archive folder  to another folder, but programmer is finding diffficulty in moving the file which has time stamp, he can move file with date stamp, but not able to move file which has time stamp, is there is any option in MDIS.Ini file or anywhere in import manager or console to modify the file names , or remove timestamp when file is moved in archive folder.
    does anyone faced similar issue, require help.........

    Hi,
    Moving file from Ready directory to Archive directory is MDM internal process and I strongly feel it is not possible to control the naming convention of File to be placed in Archive directory.
    But you can explain what problem you developer is facing while moving file from Archive directory to some other directory..then we can think about solution to acheive this. Also on which operating system you MDM server is installed.
    Regards,
    Shiv

  • A date column, with timestamp..how to remove timestamp

    Hi,
    I have a table name CATCH, with one of its fieldnamed DATE, using DATE datatype.
    The date format incudes timestamp,can anyone help me how to remove the timestamp part.
    I only want the date part only. I have tried this:
    Update CATCH set DATE=to_char(date,'DD-MON-YYYY');
    but the result of all the date inside the table still having timestamp.
    then i use this:
    Update CATCH set DATE=to_date(date,'DD-MON-YYYY');
    and the result still the same.
    Can anyone advice on this? pls.
    Thanks

    user9353110 wrote:
    Thank you very much..if thats the case, can we remove the timestamp when creating view for this table?no, you can never remove the time component of a DATE.
    If you don't want to show the time for a date (display purposes only!), use TO_CHAR to "transform" the DATE to a string with the appropriate format mask
    SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi'
      2  /
    Session altered.
    SQL> select sysdate
      2    from dual
      3  /
    SYSDATE
    17-03-2010 09:28
    SQL> select to_char (sysdate, 'dd-Mon-yyyy')
      2    from dual
      3  /
    TO_CHAR(SYSDATE,'
    17-Mar-2010
    SQL> select to_char (sysdate, 'yyyy-MON-dd')
      2    from dual
      3  /
    TO_CHAR(SYSDATE,'
    2010-MAR-17
    SQL> NOTE: the last two example are not DATEs! They are STRING

  • Is it possible to remove Timestamp on video that I imported?

    I'm currently using iMovie 08 and have imported video. Unfortunately, there is a timestamp on all of the video that makes it unattractive to look at. I'm looking for ideas on how to remove the timestamp from the video. What other software will work if this isn't possible in iMovie 08? Thank you.

    I'm a little confused..your profile says home made windows, yet you're working with iMovie?
    Anyway, if you can get a Mac to read your discs, try Streamclip to extract the video TS file. That also is dependent of whether the format of that camera creates a video ts file on disc.

  • Remove timestamp on iMessage

    How do I remove the timestamp on iMessage for iOS 8? For iOS 7 I was able to delete a text message and it would bring the text message down on my list to the last date of the last message. On this newer version, I delete a text message but that contact stays at the top of my list with the most recent date of the last text message. Any feedback would be great.

    I have a Dutch provider. Went to the USA and bought a US SIM card for my stay in the USA. I used Imessage and FaceTime there. When I came back to The Netherlands I removed the US SIM card and inserted the SIM card from my Dutch provider. I than turned-on my iPhone and ONLY the US number keeps coming up as the one and only number. I called Apple, talked with Apple but nobody seems to have to solution. Basic question is, how do I OR how does Apple removes my US number. Please note that I tried every solution known on the internet, but this seems to be a nut even Apple cannot crack.
    Ronald

  • How to remove timestamp,when i select calendar date(input Controls)

    Hi everyone
    I am using webi 4.0
    My problem is when i select calendar date(input Controls) i am able to display time stamp along with date in input Controls(MM/dd/yyyy 12:00:00 AM)
    i want to change (MM/dd/yyyy 12:00:00 AM) to (yyyy-MM-dd ), when i select calendar date(input Controls)
    where is the calendar date(input Controls)' format setting??
    i dont want to show the time stamp in calendar date(input Controls) as my users dislike to see that timestamp .
    Thanks & regards

    Hello,
    Can you show us the declaration of the internal table rec?
    Vikranth

  • How to remove timestemp with Date Column in BI Answers

    Hi All,
    i want to know how can I remove timestamp with date col from repository with "caste" command???
    Regards
    Message was edited by:
    53637

    hi,
    ur e-mail id is not working so i paste the query explain plan here:
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT POS.POS_DATE saw_0, POS.POS_ASSET_DESC saw_1, POS.POS_MARKET_VAL_LCY saw_2, POS.POS_INT_ACCR_LCY saw_3 FROM WH1 WHERE POS.POS_DATE = date '2007-01-31' ORDER BY saw_0, saw_1, saw_2, saw_3
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- General Query Info:
    Repository: Star, Subject Area: WH1, Presentation: WH1
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Logical Request (before navigation):
    RqList  distinct
        POS.POS_DATE as c1 GB,
        POS.POS_ASSET_DESC as c2 GB,
        POS.POS_MARKET_VAL_LCY as c3 GB,
        POS.POS_INT_ACCR_LCY as c4 GB
    DetailFilter: POS.POS_DATE = DATE '2007-01-31'
    OrderBy: c1 asc, c2 asc, c3 asc, c4 asc
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Execution plan:
    Child Nodes (RqCache):
    RqList <<6636>> [for database 3023:2470:wh1,46] distinct
        cast(POS.POS_DATE as  DATE )  as c1 GB [for database 3023:2470,46],
        POS.POS_ASSET_DESC as c2 GB [for database 3023:2470,46],
        POS.POS_MARKET_VAL_LCY as c3 GB [for database 3023:2470,46],
        POS.POS_INT_ACCR_LCY as c4 GB [for database 3023:2470,46]
    Child Nodes (RqJoinSpec): <<6672>> [for database 3023:2470:wh1,46]
        POS T44641
    DetailFilter: cast(POS.POS_DATE as  DATE )  = DATE '2007-01-31' [for database 0:0]
    OrderBy: c1 asc, c2 asc, c3 asc, c4 asc [for database 3023:2470,46]
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Sending query to database named wh1 (id: <<6636>>):
    select distinct  TRUNC(T44641.POS_DATE) as c1,
         T44641.POS_ASSET_DESC as c2,
         T44641.POS_MARKET_VAL_LCY as c3,
         T44641.POS_INT_ACCR_LCY as c4
    from
         POS T44641
    where  (  TRUNC(T44641.POS_DATE) = TO_DATE('2007-01-31' , 'YYYY-MM-DD') )
    order by c1, c2, c3, c4
    +++Administrator:2a0000:2a0002:----2008/01/16 03:17:21
    -------------------- Query Result Cache: [59124] The query for user 'Administrator' was inserted into the query result cache. The filename is 'C:\OracleBIData\cache\NQS_LENOVO_733059_11665_00000002.TBL'.

  • How to make same binaries using mxmlc, without timestamp?

    It seems like mxmlc generates different binary even when the source code is not changed.
    for, example,
    // Test.as
    package
        public class Test { }
    and when i run mxmlc like this :
    mxmlc Test.as -output case1.swf
    mxmlc Test.as -output case2.swf
    and case1.swf and case2.swf is different!
    I found that mxmlc sets metadata and some timestamp in .swf file,
    I could get the same binary by "unpacking" .swf, removing timestamp, and manually re-pack it.
    ( http://stackoverflow.com/questions/5632318/mxmlc-generates-different-binary-on-same-source )
    But it'll be happier when there is a special switch which generates same binary data ( That means, if mxmlc removes all timestamp and metadata which generated in compile time ) !
    Is there any way to do it, or should i build specialized mxmlc compiler?

    Have you get some thing about it?
    i am confused with this ,too
    Email:[email protected]

  • InfoPath combined with Excel Rest services gives State service error

    Hi
    I'm having a problem with InfoPath and Excel Services. I have a InfoPath form that calls Excel to do a fairly simple calculation, but I also have another form at a client that is doing the same calling a much more complicated function.
    The error I get is
    SharePoint Server
    State Service
    bm1k
    Medium
    StateSqlSession.GetItemBytesInternal() Locked row in database for key ba18f90ee2e844468b08e90ad96dff2c_05967b71a21948d39b7d4d3ada9b27c9 for 4 seconds
    SharePoint Server
    State Service
    bm0t
    Unexpected
    StateManager.GetState() Locked data (05967b71-a219-48d3-9b7d-4d3ada9b27c9)
    InfoPath Forms Services
    Runtime - State Service
    b5st
    Medium
    MOSS StateService threw an exception: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.
    I have determined that if the user is in the Members group, then it works, but as soon as the user is in another group, it gives the error. I have played around with permission levels, given the user all rights, but it still gives that error.
    Does anyone have any idea about what might be the problem? I have thought that it's a problem on the state service, but it isn't configurable. I don't want to resort to put everyone into the Members group, as that doesn't seem to be a solution that will
    work with everyone. We are on the June 2012 CU.

    Thanks Sergio. I tried that but unfortunately didn't fix the problem. I have given the groups Contribute rights, Full Control rights, create my own custom permission level, nothing works except when the user is in the Members post. 
    I realised today that the error I posted above is a bit misleading. The error that happens first before that one is this (after removing timestamps and correlations):
    Entering monitored scope (Request (POST:https://<server>/ContentHub/_layouts/Postback.FormServer.aspx))
    Name=Request (POST:https://<server>/ContentHub/_layouts/Postback.FormServer.aspx)
    Site=/
    Access denied.
    Thread was being aborted.
    Not persisting state for request due to previous errors. Form Template: urn:schemas-microsoft-com:office:infopath:Expense-Claims-With-Excel:-myXSD-2004-12-26T20-14-04
    Unhandled exception processing request for PostbackPage Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException: Exception of type
    'Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException' was thrown.
    at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentFormId()
    at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentContext()
    at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.IsDefined(GlobalItems key)
    at Microsoft.Office.InfoPath.Server.Controls.DateFormattingInfo.TryGetCachedTimeZoneId(UInt16& timeZoneId)
    at Microsoft.Office.InfoPath.Server.Controls.DateFormattingInfo.GetSPTimeZoneObject()
    at Microsoft.Office.InfoPath.Server.Controls.DateFormattingInfo.CalculateSPLocalTimeOffset()
    at Microsoft.Office.InfoPath.Server.Util.GenericUtils.GetServerTimeZone()
    at Microsoft.Office.InfoPath.Server.DocumentLifetime.ErrorPageRenderer.RenderResult(TextWriter writer, Document document, EventLogStart eventLogStart)
    at Microsoft.Office.InfoPath.Server.DocumentLifetime.ErrorPageRenderer.RenderForException(HttpContext context, Exception exception, Document document, EventLogStart eventLogStart)
    at Microsoft.Office.InfoPath.Server.Controls.PostbackPage.OnPreInit(EventArgs e)
    at System.Web.UI.Page.PerformPreInit()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    The error I first posed is I think the reaction to this exception. The strange thing is that the user can access the spreadsheet fine. When I go to the URL that is used for the rest service and just remove the $format parameter, it displays it fine as a HTML
    value.

  • Remove milliseconds from timestamp in write to measurement file

    I'm logging data to a binary tdms file using the write to measurement file express vi. I choose my x axis to be time and see that an absolute timestamp is written with millisecond precision. I only need to-the-second precision. Is there anyway to change this default behavior?
    Attachments:
    remove.png ‏10 KB
    remove.png ‏10 KB

    Where is your data coming from. When I open the express vi to look, it looks like the time format doesn't determine that, but the
    signal data cluster coming in does. So where does the data come from, and in what form?
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Regular Expressions - Removing a Timestamp?

    I have hundreds of plain HTML pages. I'd like to remove the
    timestamp from them, which looks like this:
    [19:45]
    I've tried using the wildcard feature, but the problem is is
    that I want the BRACKETS gone, as well. Unfortunately, I've only
    succeeded in removing either the last bracket (with the open
    bracket and time still intact) or all of my data completely. How
    can I successfully delete the varying times and their brackets
    without touching the rest of my data?

    In Find/Replace, with Use Regular Expression turned on:
    Find:
    \[\d\d?:\d\d?\]
    Replace:
    (leave it blank)
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Removing the timestamp from the calender in prompt

    Hi,
    I have created a prompt using the calender.. when ever I select the date and hit the GO button it is generating the timestamp 12.00.00. I want to remove the timestamp from the prompt so I used cast as date it is removing the timestamp but the date format getting changed.
    Please guide me
    Thanks

    Hi
    check this...
    http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_cast_as_date
    good blog entry on casting dates in obiee...
    Regards

  • Disabling typekit and timestamp, coming back after removing them with extension manager! annoying, help

    Just updated to Yosemite and installed creative cloud. I had time stamp for a long time, but didn't use it and it was fine. Now it pops up and is annoying, so i removed the extension of timestamp and typeset yesterday and when i started my computer today it poped up again. Is that a daily occurrence or am i doing something wrong.

    You must have selected a pre-defined extension set from the dropdown box under the search box by accident. So extension Manager enables/disables some extensions according to the rule of the pre-defined extension set automatically. With the pre-defined extension set active, you can't enable/disable any extension. The extension set feature is a convenient way for users to define multiple configurations so as to facilitate his/her work. For users who don't need extension set feature, we defined "Customized Set" and make it as the default set. So please select "Customized Set" in the dropdown box then you can enable whatever extensions you like.

  • How to remove a timestamp with adobe premiere elements 8

    How do I remove a time and date stamp on a video with adobe premiere elements 8.

    If the camera burns in the date/time stamp, then there is not much that can be done.
    If you need to eliminate that, then the best would be to apply the Effect>Motion>Scale, to enlarge the footage, until the date/time stamp is effectively cropped off by the Frame Size. You might want to look into Effect>Motion>Position, to "move" the date/time stamp closer to an edge.
    The other method is tedious, and requires ideally Adobe AfterEffects. There, you could use the Clone Tool, to "paint out" the date/time stamp, if there is enough clean background to do so.
    A variation on that method would be to Export/Share as a Filmstrip and Import that into Photoshop (if one had Photoshop Extended, there are other formats, that would work too), and then Frame by Frame, use the Clone Tool to remove that image.
    Though not a way to remove it, you can also replace it with a Title, that occupies the area of the date/time stamp, and just cover it up.
    If the camera allows you to turn that "feature" OFF, you would want to do so for newer footage.
    Good luck, and sorry for the bad news.
    Hunt

  • Removing milliseconds from timestamp

    Hello.
    I'm having problems with a date value (of type java.sql.Timestamp).
    I need to convert:
    java.sql.Timestamp date1 = 2005-05-11 12:12:30.40
    I want to delete the milliseconds from the date above and format it as:
    05/11/2005 12:12:30
    How can I do this? I've tried:
    SimpleDateFormat sdf= new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
    String tempDate = sdf.format(date1);
    But how do I now convert tempDate back to a timestamp?
    Thanks for your help!

    The output I'm looking for is 05/19/2005 13:38:37.
    I don't want to .0 at the end.Then create a SimpleDateFormat that doesn't include millis.
    Also, if only strings, etc. can be formatted, how can
    I convert a string to a timestamp?SimpleDateFormat.parse gives you a Date. Timestamp has either a constructor or a setter method that takes a Date or the Date's long from its getTime() method.
    Dates and Timestamps are just numbers--how many millis or nanos or whatever elapsed since the epoch.

Maybe you are looking for

  • Password Recovery of HP Mini 1000

    My mother just gave my son her old HP 1000. She does not remember the password to get into it. We have tried everything!! We are getting a fatal error code of CNU93230GF. I would appreciate any assistance in getting this to open. Also, what do we nee

  • MP3 Player

    I am a begginer and have had a bit of help on this stuff but im am stuck. in brief, i have a class that loads xml, creates a list holder that dislplays the "items". I then have a listItem class that says when an item is clicked to dispatch a custom e

  • SGE2000 - Dynamic VLAN assignment

    Is it possible to assign VLANs on an SGE2000 using RADIUS?  So far I have been unable to get it to work.  The user authenticates (802.1x), but the switch seems to be ignoring the VLAN assignment.  Any thoughts?

  • HT204380 Cannot activate and use FaceTime and iMessage.

    System will not accept correct Apple ID username and password. Cannot turn off applications and then turn them back on. Used to work fine on iOS 5.

  • WRVS4400N VLAN Configuration

    I've got a WRVS4400N small business router and need to configure it so that the WAN has internet access but the LAN does not.  I've tried messing around with VLAN and internet access policy settings, but it would require that I have the MAC addresses