Get the date of the seconds elapsed

Hello

In my database, I have some difference in date in seconds since January 1, 1990. I need to get the exact date of the same.

Could someone guide me please how to do the same thing?

sandipjee wrote:
What part of '=' the code?

It is not part of the code. In Oracle, two dashes show comment. Thus,--86400 = 24 * 60 * 60 is a comment explaining how we are facing 86400. You can just omit it.

SY.

Tags: Database

Similar Questions

  • How to get the second Monday of each month in a given date range?

    In Oracle forms, how to get the second Monday of each month in a given date range?

    I tried below using the query WITH the Clause, but it seems that WITH Clause does not work in Oracle forms. So is there another way to do this in Oracle forms?

    WITH month_range AS

    (

    SELECT TO_DATE ('Dec 2013', 'Mon YYYY') AS first_month

    , TO_DATE ('Mar 2014', 'Mon YYYY') AS last_month

    OF the double

    )

    SELECT NEXT_DAY (6 + ADD_MONTHS (first_month

    , LEVEL - 1

    )

    , 'MONDAY '.

    ) AS second_monday

    OF month_range

    CONNECTION OF LEVEL < = 1 + MONTHS_BETWEEN (last_month, first_month)

    ;

    Thanks in advance.

    Good fishing, when the first day of the month is Thursday... So I changed the query accordingly... Try the below

    SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'game '.

    THEN NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'THU')

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'Game') + 7

    END AS second_day

    FROM (SELECT SYSDATE startdate,

    SYSDATE + 300 enddate

    THE DOUBLE)

    CONNECT BY LEVEL<=>

  • How to get the second and third weekend of every month over a period of time?

    Hello

    No idea how to get the second and third weekend of every month on a given period without use of CLAUSE?

    Thanks in advance.

    Try it below,

    SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 1

    WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 6

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 1

    END as second_weekendday,

    BOX WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'SAT '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7

    WHERE TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'Sun '.

    THEN ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)) + 7

    Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), "SAT") + 7

    END AS third_weekendday

    FROM (SELECT SYSDATE startdate,

    SYSDATE + 300 enddate

    THE DOUBLE)

    CONNECT BY LEVEL<=>

  • Get the second last occurrence of the character

    Hello

    I want to get the second last occurrence of '_' of the next string and take the 3 characters before that.
    No one knows how to do it in a single query?

    The string is

    ALS_AKM-G-2500_BASED_pre_paid_akm_mis_stv1
    SQL> with my_str as
      2         (select 'ALS_AKM-G-2500_BASED_pre_paid_akm_mis_stv1'col
      3          from dual
      4         )
      5  select substr(col, instr(col, '_', -1, 2)-3, 3)
      6  from my_str;
    
    SUB
    ---
    akm
    
    1 row selected.
    
  • How can I get the second and third highest salary from the emp table

    How can I get the second and third highest salary from the emp table in the ecah Department
    SQL> ed
    Wrote file afiedt.buf
    
      1  select empno, ename, sal, deptno
      2  from (
      3    select empno, ename, sal, deptno, dense_rank() over (partition by deptno order by sal desc) as rn
      4    from emp
      5    )
      6* where rn in (2,3)
    SQL> /
    
         EMPNO ENAME             SAL     DEPTNO
    ---------- ---------- ---------- ----------
          7782 CLARK            2450         10
          7934 MILLER           1300         10
          7566 JONES            2975         20
          7876 ADAMS            1100         20
          7499 ALLEN            1600         30
          7844 TURNER           1500         30
    
    6 rows selected.
    
    SQL>
    
  • How to get the second clue high table max and min

    Hello

    I need help to find the second clue to the data table, how can I do?

    Secure with the extract of vi.

    Thank you and best regards,

    Simon

    You forgot to make the comparison to see where the 2nd most high index has declined compared to the highest.

    You only add 1 if the 2nd above comes after the highest.  You added 1 regardless of the position.

  • HP Pavilion 17 Laptop: Unable to get the second screen after upgrade to Windows 10

    Hello

    I upgraded Windows 8.1 to Windows 10 yesterday.

    Up to now the double screen/second screen was working fine after upgrade my projector not able to identify my laptop.

    When I select the Windows key + P I get the message error "your PC can't project to another screen. Try to reinstall the driver or by selecting the different video card"

    On my device-> graphics cards Manager, I see only Microsoft Basic graphics card.

    Can someone help what driver should I install? Also ask you to provide the link for the driver to download the same.

    Thank you best regards &,.

    Umesh

    Here are the technical details:

    http://WWW8.HP.com/h20195/v2/getpdf.aspx/c04511132.PDF

    It is HD4400 Intel graphics

    Try the Intel driver update utility:

    https://Downloadcenter.Intel.com/download/24345/Intel-driver-update-utility

    Download drivers HP pages not available right now.

  • How to get the second line in an indented bulleted list...

    Hello

    I understand how to get flea and list numbering, and I added numbers to a list that will be used (although the content will be replaced) on about a hundred pages of my cookbook.  Many numbered tickets are just a single line, but some entries are two or three lines, and in these cases, the text begins on the left directly under the number on it - I prefer the second and third lines of text to start directly under the text in the above numbered line.  In which case I'm not explain correctly, here is a small screenshot (it comes through hope):

    screenshot_1030.png

    Did someone mind telling me how to solve this problem?

    Thank you very much

    Malcolm

    Can you show a screenshot with the same panels open screen I've had, and the selected numbered text?

    Also, I should have mentioned that to move just down half of the arrow on the tab of the Panel, you must hold down the SHIFT key at the same time.

  • How can I get the second disc of student CS4 edition to install?

    I installed the first disc of the student CS4 edition and tells me to put in the second disc to continue installation. However, there is no way to install the second disc and I can't click ok, cancel, or exit. any advice would be great.

    Hello

    Try to Download CS4 products

    Hope that helps!

    Kind regards

    Sheena

  • How can I get the second max and max third in the list of values

    Hai All


    I have four to Six calendar in a table and I need to insert these values in another table to help if another logic...

    For example

    this if 0815,1130,1230,1715 can get maximum of 2nd and 3rd maximum

    I have four columns in another table

    Respondent, intrinsically, Introut, Outtime and I need to store the intimate min and max in outtime and 2nd intrinsically min and 2nd max in introut to help if another logic

    Thanks and greetings

    Srikkanth.M

    It might be more like what you want:

    SQL> with t as (
      2  select to_date('0815', 'hh24mi') as is_time from dual union all
      3  select to_date('1130', 'hh24mi') as is_time from dual union all
      4  select to_date('1230', 'hh24mi') as is_time from dual union all
      5  select to_date('1715', 'hh24mi') as is_time from dual
      6  )
      7  , tt as (
      8   select is_time
      9         ,min_time
     10         ,max_time
     11         ,max(dn) over (partition by null) as max_dn
     12         ,min(dn) over (partition by null order by is_time) as min_dn
     13         ,dn
     14   from  (
     15    select is_time
     16          ,dense_rank() over (order by is_time) dn
     17          ,min (is_time) keep (dense_rank first order by is_time) over (partition by null) as min
    _time
     18          ,max (is_time) keep (dense_rank last  order by is_time) over (partition by null) as max
    _time
     19    from t
     20        )
     21  )
     22  select tt.is_time
     23        ,tt.min_time
     24        ,tt.max_time
     25        ,tt.max_dn
     26        ,tt.min_dn
     27        ,tt.dn
     28        ,case
     29          when max_dn - dn = 1 then
     30            tt.is_time
     31         end as second_max
     32        ,case
     33          when max_dn - dn = 2 then
     34            tt.is_time
     35         end as third_max
     36  from tt
     37  /
    
    IS_TIME             MIN_TIME            MAX_TIME                MAX_DN     MIN_DN         DN SECOND_MAX          THIRD_MAX
    ------------------- ------------------- ------------------- ---------- ---------- ---------- -------
    01/03/2010 08:15:00 01/03/2010 08:15:00 01/03/2010 17:15:00          4          1          1
    01/03/2010 11:30:00 01/03/2010 08:15:00 01/03/2010 17:15:00          4          1          2                     01/03/2010 11:30:00
    01/03/2010 12:30:00 01/03/2010 08:15:00 01/03/2010 17:15:00          4          1          3 01/03/2010 12:30:00
    01/03/2010 17:15:00 01/03/2010 08:15:00 01/03/2010 17:15:00          4          1          4
    
    4 rows selected.
    
  • I have two profiles of Firefox. The default value is updated to the latest version. The second profile is version 3.6.25. I can not get the second profile to update to the latest version. How do I do that?

    I don't have administrative authority on this computer, but it has never been a problem before with the update.

    I don't have the chance to check this Monday. In the meantime, version 10 is out. I made sure that my default profile has been completely liquid and manually update the secondary profile, it closed and reopened and had the update. When I opened the default profile, there is not automatically updated but I was able to update without problem. I think I'll call it's good for now and see what happens the next time that we update. I always have our Manager to update the modules for me but because it is the only administrative authority. Thanks cor - el!

  • Is there an easy way to get a Date/time string seconds?

    I have 2 strings of the format depending on whether I would like to convert in seconds (since 1900). I need this value to set the t0 in a field.

    Date: ' 30/06/2014 '.

    "Time: '16:06 ' 08."

    Is there a CVI function that will do this conversion for me? If not, is there an easy way to do it?

    Thank you!

    This code should do what you want:



    static time_t calt;
    struct Shared tm tm;
    public static char msg [64];
    public static int AA, mm, DD, hh, mn ss;

    strcpy (msg, ' 2014/06/30 16:06:08 ');

    Extract the date/time string component
    Scan (msg, "%d [x] %d [x] %d [x] %d [x] [x] %d %d", & mm, dd, and yy, & hh, & mn, &ss);)

    Transfer to a struct tm components
    TM.tm_hour = hh;
    TM.tm_min = mn;
    TM.tm_sec = ss;
    TM.tm_year = yy - 1900;
    TM.tm_mon = mm - 1;
    TM.tm_mday = dd;

    Obrtain calendar
    CALT = 0;
    CALT = mktime (&tm);)

  • How to get the data from more than 100 domains in bulk API V2.0?

    Hi all

    I try to get data from Eloqua by APIs in bulk because of big data.

    But my Contact 186 fields (more than the majority of export limitation 100). I think I need to get all the data by 2 exports.

    How could I corresponds to 2 parts of a line and join together?

    I'm afraid that any change of data between 2 relative to exports 2 synchronizations would make different order.

    FOR EXAMPLE:

    1. any document is deleted or modified (if it matches do not filter) after obtaining data of the first part and before getting the second part, then everyone behind it would have back in part result.

    2. the data in some fields (included in both parts) are changed between the 2 synchronizations, then the values of the second part are more recent but the values of the first part are old.

    All suggestions should.

    Thank you

    Biao

    bhuang -

    I don't know that you ever go to work around the fact that things will change in your database while you are synchronizing the data. You have to have a way to create exceptions on the side of the synchronization.

    If I pushed Eloqua data to a different database and had to contend with the problem of matches change while I'm syncing, I would create a few additional columns in my database to track the status of synchronization for this folder. Or create another small table to track the data map. Here's how I'd do.

    1. I would have two additional columns: 'mapped fields 1' and '2 fields' mapped. They would be all two datetime fields.
    2. I would do only one set of synchronization both. First of all, synchronize all records for email + 99 fields. Do the entire list. For each batch, the datetime value of the lot in 'mapped fields 1' column.
    3. I would then synchronize all folders of email + other 86 fields. Repeat the entire list. For this batch of the datetime value of each batch in their 'mapped the 2 fields' column to now().
    4. For all records that had only 'mapped fields filled, 1' but' fields mapped 2' was empty, I would be re - run the second query Eloqua API using e-mail as the search value. If no results were returned, I would remove the line. Otherwise, update and the value 'mapped fields in 2' now
    5. For all the records that were only "fields mapped 2', I re - run against the first email query API Eloqua, fill in the missing data and define 'mapped the fields of 1' of the current datetime object." If the record has not returned, remove the line because it is probably not in the search longer.
    6. Finally, the value 'mapped fields 1' and 'mapped 2 fields' empty for all records, since you know that data is synchronized. This will allow you to use the same logic above on your next synchronization.

    Who is? It is not super clean, but it will do the job, unless your synchronizations take a ridiculous amount of time and your great data changes often.

  • Get the harmonics

    First of all, thank you see my question.

    My question is I want to get the second harmonics of high frequency!

    The waveform on the oscilloscope and the waveform is a 25 kHz sine modulate the oblique wave of 100 Hz.

    The attachment is the csv file, include waveform data.

    Here's a quick test

    However with 5Msample I see a fundamental 500 k... just change the sampling rate and the search at 250 k, 25 k and 50 k options...

    I used the single tone for this vi...

    And now please tell us what it is

  • The second image lost in CAN communication when use card NI PCI-CAN/XS2

    I recently had a problem on CAN communication.

    I need commmunicate a Cluster with CAN BUS, baud rate is 500 Kbps, the BOX is card NI PCI-CAN/XS2. The operating system is Windows XP.

    normally, the PC send a Cluster command, then reread a frame of data of the Cluster, but for some controls, the Cluster will return two data frames, and the program on PC cannot receive the second frame, he lost.

    I searched the forum, most of her results is the overflow of CAN BUS error, which make the CAN setting lost, but there is not an error on my program report and baud rate is not that fast, I also use another port of the NI PCI-CAN/XS2 to monitor the bus CAN, the second frame of data never appear When I can replace NI CAN map vector CanCaseXL (CAN card) and call of CanCaseXL DLLS in labVIEW, it can get the second CAN fit, the vector CanCaseXL monitor can get the second image data also.

    Yes, is there a software/hardware configuration must be done to get the second block of data?

    the attached photos are NOR-CAN/vector ALLOWS to follow and CAN init/write & read in my program.

    Any reply is appreciate! Thank you

    Hello iwantofly014,

    I don't know that the framework is not lost.

    Could you post your code?  In particular the data Get VI?

    Also, can you make an indicator of the output of the ncReadNetMult?

    It seems you are trying to implement the UDS and KWP2000 Protocol.  Is this possible?  We have a product that already implements these two protocols and really simplify this type of application.  Its called the Automotive Diagnostic command set.

    Have a great day.

Maybe you are looking for