Question of TIMESTAMPADD (SQL_TSA_YEAR) (with leap years)

Dear community OBIEE,

Any who have suffered no problems when you use timestampadd (SQL_TSI_YEAR, 55, 'Date of birth')?  Most of the result were correct with the exception of a few minute question when a DOB fell 2/28/20... (number pair year). Is there a work around for a such minute but difficult behavior OBIEE?

Kind regards.

-Felix

For me, it's showing as expected.

See below. in my case I have not value date 28/02/1977 so formulated according to the needs. Maybe this would be a reason to see the 28/02/2032

Tags: Business Intelligence

Similar Questions

  • Bug or error during the handling of leap years with WDS/DS

    Hi all

    I discovered a difference in results with the construction and to debug (without frame) and generate and debug with the revisions of Web or server of determinations when calculating the days in leap years.
    I use the DayDifferenceInclusive function to calculate the number of days in a period of insurance.

    the number of days of insurance period = DayDifferenceInclusive (the start date of the insurance, the date of the end of insurance)

    With the tester of regression or generation and debugging (without frame), I get the following result for the following entry:

    * 93 = DayDifferenceInclusive (02-29-2008, 05-31-2008) *.

    When we use the revisions of Web or server of determinations we get the value of * 92 * for exactly the same data entry when it should be 93.
    Is this a bug in the java code? How can we fix this or is there a work around it?

    We are in the middle of integration testing system for a huge project to help is very appreciated!

    Best regards
    Niels Roest

    Niels,

    Thanks for that - and it seems that in the Netherlands DST began March 30, 2008, that is, as far as I know, the trigger for this error.

    I have reproduced the issue against 10.1 using the period from 1st October 2010 to 30 October 2010, which contains the date this summer time began in Australia.

    Regarding the ways to work around the problem, I can offer 3:

    * wait 10.2 - it is in beta at the moment (but given your opening remarks, may not be an option for you)
    * set your locale of the server to that which has no DST
    * work around the issue in the rules:

    First of all, the question is that the retail version fails because it does not realize that one of these days is shorter than the standard 24 hours.

    The trick is to replace the DayDifference function with the HourDifference function and round up the number of days.

    Thus given a rule that looks like:

    result = DayDifference (date one, date two)

    It can be rewritten in the form:

    The result = round (HourDifference (one at 00:00:00, date two to 00:00:00) / 24, 0)

    * the "at 00:00:00 ' is necessary because HourDifference works on dates/hours, not dates.

    Sorry for the inconvenience.

    Concerning
    Andrew

  • Bug with interval and leap years

    select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' year as dt from dual;
    
    ORA-01839: date not valid for month specified
    01839. 00000 -  "date not valid for month specified"
    *Cause:    
    *Action:
    
    select to_date('2012-feb-29','yyyy-mon-dd') + interval '2' year as dt from dual;
    
    ORA-01839: date not valid for month specified
    01839. 00000 -  "date not valid for month specified"
    *Cause:    
    *Action:
    
    select to_date('2012-feb-29','yyyy-mon-dd') + interval '3' year as dt from dual;
    
    ORA-01839: date not valid for month specified
    01839. 00000 -  "date not valid for month specified"
    *Cause:    
    *Action:
    
    select to_date('2012-feb-29','yyyy-mon-dd') + interval '4' year as dt from dual;
    
    29-FEB-16 00:00:00
    
    
    select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' day as dt from dual;
    
    01-MAR-12 00:00:00
    
    select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' month as dt from dual;
    
    29-MAR-12 00:00:00
    The problem exists in 10.2.0.4 and 11.2.0.3

    Published by: birlenbach-Chase February 29, 2012 09:20

    Hello

    That's just how the intervals of work. Leap years are the least of the problem; Adding 1 month to 31 March results in the same error.
    If you want to make sure that the result is a valid DATE, use ADD_MONTHS. (There is no separate function for adding years; use ADD_MONTH (SYSDATE, 12 * n) to get the DATE which is n years.)

  • Leap year TMS Scheduler

    We have MSD and MSD Smart Scheduler.  When users of planning meetings in the smart Scheduler for Monday 2/29, they are listed as Tuesday 3/1, I guess because of the leap year.  However, it shows the correct date when you click the meeting and in the TMS itself.  I checked to make sure that the time zone settings are correct.  Is that going to the issue of Monday?

    Turns out just a cosmetic defect with Smart Scheduler, see CSCuy19844.

  • How to check leap year between the years earn a new degree?

    Hi all
    I developed a report to print a report of emplyees who earn a new degree between towing dates entered by two parameters of the user.
    I used this code to do this:

    SELECT ALL E.EMP_SID, E.EMP_FULL_NAME, E.FINANCIAL_NO
    (CASE WHEN E.qualification_sid = 1104 AND E.degree_sid = 8 THEN
    (TO_DATE (E.degree_DATE, 'DD-MM-RR') +(365*M.spe_per) + 1).
    ON THE OTHER
    (TO_DATE (E.degree_DATE, 'DD-MM-RR') +(365*M.yea_per) + 1).
    END)
    COMM_degree,
    OF INDUSTSRIE E, M DEGREES
    WHERE (CASE WHEN E.qualification_sid = 1104 AND E.degree_sid = 8 THEN
    (TO_DATE (E.degree_DATE, 'DD-MM-RR') +(365*M.spe_per) + 1).
    ON THE OTHER
    (TO_DATE (E.degree_DATE, 'DD-MM-RR') +(365*M.yea_per) + 1).
    END)

    BETWEEN TO_DATE (: P_F_DATE, 'DD-MM-RR') AND TO_DATE (: P_L_DATE, 'DD-MM-RR')
    AND (E.degree_SID = M.SID)
    ORDER BY M.SID DESC, E.EMP_FULL_NAME

    Now there is an error in the data led to some employees with a leap year in the year to earn income
    for example: an employee has a degree date of 10/01/2011 and win it supposed the next level is 10/01/2016 but the report gives as 30/09/2016 because there's one year leap year 2012 which have 366 days 365 days I count in the code!
    If there is something mysterious in the code, please do not hesitate to ask!
    Please how to fix this?

    Note: I use reports 6i.

    Hello

    Try ADD_MONTHS(SYSDATE,12) - instead of 365 DAYS

    IF ANY PROBLEM WE THE KNOW

  • Hi, FCP my, library, was damaged, i, open, drank of the PCF, library and, he, worked, well, then, my, question is, which, do, with, the, old, library,?, is, again, I, working, throughout, with, the, a, used?, or, should, I, open, Abu, one, i used, each, t

    Hi, my, library, has been damaged, so I have, open, a, FCP BU library and this worked well, so my, question, is, what, do, with, the, old, library,?, is, always, workin g throughout, with, a, I have used?, or, well, I have, open, BU, one, i, used, each, times, I, open, my, project?

    Rename your backup library in order to take account of the original, and then delete the original.

    FYI: Identification will facilitate a slightly different name.

    Al

  • iPhone with 2 year contract fee?

    Hi all

    I bought an iPhone SE with 2 year Verizon a week contract. However, I want to switch to ATT. So how are fees to avoid a 2-year contract to Verizon?

    Thank you for answer

    Read the documentation provided by Verizon.

  • Wrong date. A day off. Does not take into account leap years.

    We don't want the date on my iMac. It is a day of rest. On March 3, it shows March 2. Of course, it didn't take leap years into account. When I tried to change it after you have unlocked the date/time, he wouldn't let me to change the date. It is automatically defined under Apple Americas/U.S. (time.apple.com site), but the automatic setting is false. How do override us the auto setting or have them repaired?

    Oops! My watch was the one who was wrong. Apple is very well. Sorry about that.

  • I'm looking to move from Windows/Apple/logic and Cubase Cubase. My questions have to do with the current (2014) Mac mini, specifically the i5 $999 2.8 GHz with 8 GB of RAM. This computer will be powerful enough to run the current logic without any pr

    I'm looking to move from Windows/Apple/Logic Pro X and Cubase Cubase.

    My questions have to do with the current (2014) Mac mini, specifically the i5 $999 2.8 GHz with 8 GB of RAM.

    This computer will be powerful enough to run Logic Pro X DAW and Cubase 8 courses without any problem?

    I would say yes, but I post here too:

    Logic Pro

  • On closure of my MacBook Pro always get question "continue application"? with the boxes option to cancel or continue the request.

    On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.

    Selection of abandonment does not prevent the following message appears when closing next down.

    Activity monitor shows all the applications that you have

    installed, running in the background? Something can be...

    If you open the force quit, are there topics other than the Finder

    and maybe a browser?

    You repaired the disk from disk utility permissions lately?

    We could also see other boot options on the use in

    Recovery of OS X to use the "OS X Utilities" in there. Be careful.

    Is there more than one user account on your computer? If you

    Start in another user account and have auto login for

    the fact that it is one that rises at the start, a piece

    similar issues or is it just works fine on shut down?

    The question may take some trial and error troubleshooting. This

    may include some basic startup keyboard shortcuts for

    the computer to start in Safe Mode, to do more test, etc.

    If you have access to an official Apple store, you can be

    able to set up an engineering appointment & have someone closer.

    Good luck anyway...

  • I read this topic (I have a lot of questions about Xperia Z2 with lollipop)

    Hello world. I read this topic (I have a lot of questions about Xperia Z2 with lollipop) and I have posted a question, but it seems that no one saw him. That means the following: (how can I install the source application unknown to other users in my phone because it is to the unknown source menu is disabled in the settings-> Security)? This means that I can not install all the apps if I switch to the lollipop? Can someone tell me please the exact meaning of this?

    Thank you.

    It's true, but game store will not need this option checked - loading of a file manager will - but which is not say that the application will work once installed

  • I just upgraded from the LR5 LR6 on my Macbook Air to OS 10.9.5. LR5 photos 38K, especially on an SSD connected with 2 years on an internal hard drive, gave a 48 GB LR5 catalog. From LR6, I decided to import all the photos of 38 K stored on my SSD to form

    I just upgraded from the LR5 LR6 on my Macbook Air to OS 10.9.5. LR5 photos 38K, especially on an SSD connected with 2 years on an internal hard drive, gave a 48 GB LR5 catalog. Starting LR6, I decided to import all the photos of 38K stored on my SSD to form the LR6 catalog, but it is now 108 GB. Is he aware would be so much bigger than LR5 LR6 catalog? Should I redo, selecting the LR5 catalog to import to the LR6?

    I don't pretend to re-do an import, I do not import or re - import at all.

    You can delete the catalog Lightroom 6 and his insights that you created. You want to have the Lightroom 6 to upgrade the 5 Lightroom catalog file. Use the file-> open catalog and point to the 5 Lightroom catalog file. Once it is successful, you can also delete or archive the 5 Lightroom Catalog and delete its previews. As a piece of advice, never re - import photos. NEVER, as in... do not, do not, don't go anywhere near it.

    Regarding the size of the preview, you can control this in Lightroom under the catalog tab file management settings.

  • interval + "1" [year | month | day] does not take into account leap years?

    Hi all

    The Version of database: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    Database version: PL/SQL Release 10.2.0.5.0 - Production

    I just realized that the function of the interval is not account of leap years.
    SQL> select to_date('29-02-2008','dd-mm-yyyy') + interval '1' year 
      2    from dual;
    select to_date('29-02-2008','dd-mm-yyyy') + interval '1' year
                                          *
    ERROR at line 1:
    ORA-01839: date not valid for month specified
    I looked through the documentation as much as I can and could find no mention of this.

    If I want to add a year to date, I have to calculate the number of days or do something like incrementing only the part of the year and then manually check that it does not fall on February 29 if it is not a leap year manually?

    Edit:

    just to clarify, day and minute seem to work for example but do not have month and year:
    SQL> select to_date('28-02-2009','dd-mm-yyyy') + interval '1' day
      2    from dual;
    
    TO_DATE('
    ---------
    01/MAR/09
    
    1 row selected.
    
    Elapsed: 00:00:00.00
    SQL> 
    SQL> select to_date('28-02-2009 23:59','dd-mm-yyyy hh24:mi') + interval '1' minute 
      2    from dual;
    
    TO_DATE('
    ---------
    01/MAR/09
    
    1 row selected.
    
    Elapsed: 00:00:00.00
    SQL> 
    SQL> select to_date('29-01-2009','dd-mm-yyyy') + interval '1' month
      2    from dual;
    select to_date('29-01-2009','dd-mm-yyyy') + interval '1' month
                                          *
    ERROR at line 1:
    ORA-01839: date not valid for month specified
    
    
    Elapsed: 00:00:00.00
    SQL> 
    SQL> select to_date('29-02-2008','dd-mm-yyyy') + interval '1' year
      2    from dual; 
    select to_date('29-02-2008','dd-mm-yyyy') + interval '1' year
                                          *
    ERROR at line 1:
    ORA-01839: date not valid for month specified
    Published by: WhiteHat on July 14, 2011 10:31

    Hello

    It is true; in the INTERVAL arithmetic + x (or) d - x, where x is the months or years, the result will be the same day of the month as d. If this date does not exist, then you will get an error
    Another example is:

    SQL> SELECT  DATE '2011-03-31' + INTERVAL '1' MONTH  FROM dual;
    SELECT  DATE '2011-03-31' + INTERVAL '1' MONTH  FROM dual
                              *
    ERROR at line 1:
    ORA-01839: date not valid for month specified
    

    To avoid triggering an error, use ADD_MONTHS and/or arithmetic DATE instead.

  • How I replace perfectly my record excel sheet with ability of database? + General questions about computing distributed with LabVIEW

    Surprisingly, I'm almost finished with a full blown control-simulation application, that I've been working on for more than a year now, thanks in no small part of this community. The final step is to run on the simulations of k ~ 8 and be able to meet a simulation and overall statistics on performance. Each simulation is taking about 6 minutes of real time to run (~ 2 seconds of real time per hour of simulation time, valid for 7 days of simulation), as we seek to about 800 hours of your time to simulate. I have 5 computers available and a raspberry 2 Pi these simulations on, I'm looking to set up a kind of compute cluster at the end in about 2 weeks.

    The ability of current logging is sketchy; I got about 40 columns of data, and they are written in a spreadsheet with a .xls format tabs-delimited. This works very well for individual simulations, but it would be quite heavy to deal with if I had more than 20,000 of them. I think this must be done with a relational database sort, but my experience with databases is very limited, especially then, when it comes to LabVIEW. Here are my questions:

    -Can I create a kind of master-slave configuration where a computer (and probably the Pi) keeps track of the simulations are complete, which are running, and who have never run? Computers slaves ask for simulation settings, and IP would give them to him.

    -How should I take care of the database? Each simulation is about 500 k in .xls format, it's about 5 GB of data in all. Computers slaves synchronization from time to time to take care of the redundancy?

    -How can I refine my memory + General fresh disk I/O? How can I know which items from my point of view most of them?

    -Do you have suggestions for the implementation of clusters of databases relational/computer with LabVIEW?

    I have attached a picture of my configuration of logging + the overall structure of the application. It is a state machine with a structure of the event for the interruptions.


  • Questions of getting started with Service contracts to small businesses

    I recently bought small business Service contracts for my Cisco Small Business networking products. I know that I get support 24 x 7, as well as the ability to open cases taken in charge (I recently tried and it works fine).

    I also know that I get next day material, as well as firmware upgrade replacement for my networking products.

    Here are my some "Getting Started" questions:

    1. If I need a replacement of material next day, how can I go to? Open a case of pension? I saw under the requests of support there is an option for the replacement of equipment.

    2 will I be automatically informed of updates firmware for my networking products, or I have to look it up on the Support Center? I don't know how to upgrade the firmware of all my networking products. Is it possible to subscribe to a list of email or RSS feeds notifying me of updates firmware for my networking products?

    3. I will announce when my service contract is about to expire so I can renew them, or is it my responsibility to do not forget to renew? I have to manually put on my calendar?

    Thank you!

    (1) to request an RMA number, you must open a case to the HWC.    You can call 866-606-1866 24 x 7 to prosecute.    If you do not have a support contract, (under warranty) you are only entitled to phone support 09:00-18:00 (local time) m..     You MUST be prepared to troubleshoot the device with the HWC engineer.     Do not assume you can open a file and receive an RMA number without looking at the camera.     Often, we can save the camera and make you save a lot of time.

    (2) you can sign up for automatic alerts on updates of the firmware using this link and by selecting the devices you want updates on.    The 2nd link allows you to manually check for updates.

    http://www.Cisco.com/Cisco/Web/support/index.html

    http://www.Cisco.com/Cisco/support/notifications.html

    (3) I checked with HWC contracts administrator.       According to her, you should begin to receive alerts from 6 months to 90 days before the expiry of the contract.    You may or may not be able to renew the contract, based on the life cycle of the product.

    In response to Dirk: you can extend the support of the product by buying a service contract any time during the period of 1 year warranty.     A support agreement for your device can be purchased from any local Cisco partner or any Cisco partner online.     Here are the main advantages of a contract on the guarantee.     They are a great value.

    • Extended telephone technical support from 1 to 3 years
    • Replacement of tip / the day following RMA return vs factory RMA
    • technical support 24 x 7 vs.  9. 6 M - business hour support F.
    • Firmware update
    • Even if your product my have a lifetime material warranty, which does not qualify for the technical / troubleshooting / configuration is supported without a contract.     With the warranty on the equipment only, the HWC troubleshoot your product just enough to know if it qualifies for a replacement of hardware.
       
     

Maybe you are looking for

  • What is the printer better, cheaper for an IPad mini?

    I have an Apple Ipad Mini 9.1 & am looking to buy a good printer cheap. All do you recommend them?

  • Problem running Subvi after construction of .exe

    Hi all I've seen much related to this topic but you have not found anything specific to my situation. I built a simple wrapper to launch different Subvi depending on whether it of Saturday or not. The vi works perfectly well as a vi in LV2012. But wh

  • I'd get information from Windows Media Player to determine when a file is complete how to play?

    I created a program for Windows Media Player. This program uses external buttons connected to a PCI card to read when a user presses a particular button. I need the program to wait until the video is complete before doing anything else. Is it possibl

  • WRT610N and WGA600N game help?

    Hey everyone I need help to find the best settings for wrt610n for games and it goes the same for the wga600n. whenever I play a game the connection falls for about 1 minute then I can play again. as he always says something about the strict firewall

  • can I burn bluray with my laptop?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! I have a windows vista home basic 32-bit laptop with a dvd burner can I burn bluray discs or do I need to get a new drive or even worse, a new l