convert Date actual number

I have a column that stores the Date as a number, 19490128 YYYYMMDD

I need on hidden that on a real Date and then find out the age of the person, how could I do?

I used to know how, but I forgot:-)

Help, please...

40 "

SELECT ROUND ((SYSDATE-TO_DATE ('19490128', «AAAAMMJJ»)) / 365, 0) 'THE AGE '.
OF THE DOUBLE

Tags: Database

Similar Questions

  • How to convert date to number

    Hai

    How to convert the date as a number.

    Thanks and greetings

    srikkanth. M

    Look at these messages
    Please help me in converting Format of Lilian date
    converstion to date
    and try something like that.

    SELECT sysdate,sysdate-to_date('15-10-1582','DD-MM-YYYY') lilian_dt FROM dual;
    
  • How to convert Date floating number

    Hi everyone, I want to make a time measure of the hall sensor and use that value to set a frequency, and also to use as the value of process in a PID controller. the problem is that I get a result of dynamic data and I would like to have this in a floating number, is that possible? or another way is also good... hereby a jpeg to make it more clear.

    I also have more problems with that, when I change the throttle (0-100%) is does nothing and my time loop also doesn't stop more. This is just a small part of the full program, it's may be heavy for my computer? (core 1, 6 GHz, 1, 5gig of ram)

    hope it's a bit clearer what I mean

    Thanks in advance!

    PS: I know that the fracture by one is useless because you can directly measure the frequency, which has already changed.

    the program is intended to push a PMSM motor

    You can change the type of dynamic data for the meter using the function of Double-precision float in the digital - Conversion scheme.  For your other question, you are not showing your loop together so I can't help you there.  What stops the loop?

  • Target to host DMA FIFO - actual number of items

    Hello

    I have a target of FIFO of DMA host using memory block. Under FIFO properties, "the actual number of elements" is indicated as part of 1023.

    But when I wire a remaining indicator to the 'elements' of FIFO in the host of VI, said 16384 elements. And I read a lot of part of the FIFO.

    Why is the actual number of items that much more?

    The data type is 32. And I have a high-7965R FPGA.

    See you soon.

    There are two different buffers for the FIFO: one on the host, the other on the FPGA.  Data is copied from one to the other.  It may be more space allocated on the host, because there are more memory available here and the loop of the host, probably runs more slowly than the FPGA.  You can set the host using a node to invoke FPGA FIFO set the buffer size value.

  • TestStand database error - error converting data from nchar int type.

    Hello

    I used SQL standards database stored procedure options to store records of my test and I added the generated tables and stored procedures in a database and it seems to work OK in this form. However when I change the UUT_Results table to include a new column that contains the value of the primary key of another table in the database that I meet problems.

    I run a query that returns the primary key value (integer) for a given series number and stores the result as a global station (number format). The correct value is stored in the variable, but when I try to use this value in the stored procedure I get an error like below:

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Schema: SQL Server Stored Proc (NOR)
    Statement: UUT_RESULT.
    Description: Error converting data from nchar int type.
    Number:-2147217913
    NativeError: 8114
    SQLState: 22018
    Reported by: provider Microsoft OLE DB for SQL Server

    Source: TSDBLog

    My SQL statement for creating the table and the procedure for UUT_results are below:

    ~
    CREATE TABLE UUT_RESULT)
    Uniqueidentifier PRIMARY KEY ID,
    BoardDetailID int,
    STATION_ID varchar (255),
    BATCH_SERIAL_NUMBER varchar (255),
    TEST_SOCKET_INDEX int,
    UUT_SERIAL_NUMBER varchar (255),
    USER_LOGIN_NAME varchar (255),
    START_DATE_TIME is datetime,
    EXECUTION_TIME float,
    UUT_STATUS varchar (32),
    UUT_ERROR_CODE int,
    UUT_ERROR_MESSAGE varchar (255)
    CONSTRAINT UUT_RESULT_FK FOREIGN KEY (BoardDetailID) made REFERENCE BoardDetails)

    ~
    CREATE PROCEDURE InsertUUTRESULT
    @pID uniqueidentifier,
    @pBoardDetailID int,
    @pSTATION_ID varchar (255),
    @pBATCH_SERIAL_NUMBER varchar (255),
    @pTEST_SOCKET_INDEX int,
    @pUUT_SERIAL_NUMBER varchar (255),
    @pUSER_LOGIN_NAME varchar (255),
    DateTime @pSTART_DATE_TIME.
    float of @pEXECUTION_TIME.
    @pUUT_STATUS varchar (32),
    @pUUT_ERROR_CODE int,
    @pUUT_ERROR_MESSAGE varchar (255)
    AS
    INSERT INTO UUT_RESULT (ID, BoardDetailID, STATION_ID, BATCH_SERIAL_NUMBER, TEST_SOCKET_INDEX, UUT_SERIAL_NUMBER, USER_LOGIN_NAME, START_DATE_TIME, EXECUTION_TIME, UUT_STATUS, UUT_ERROR_CODE, UUT_ERROR_MESSAGE)
    VALUES)
    @pID,
    @pBoardDetailID,
    @pSTATION_ID,.
    @pBATCH_SERIAL_NUMBER,.
    @pTEST_SOCKET_INDEX,.
    @pUUT_SERIAL_NUMBER,.
    @pUSER_LOGIN_NAME,.
    @pSTART_DATE_TIME,.
    @pEXECUTION_TIME,.
    @pUUT_STATUS,.
    @pUUT_ERROR_CODE,.
    @pUUT_ERROR_MESSAGE)

    Any help would be appreciated,

    Thank you

    Stuart

    Stuart-

    What is the expression you are evaluating and the data type of the parameter that you defined in the Options database dialog box for the schema that you connect to data with?

  • How to convert a large number to the spell without truncate to 32-bit.

    I'm trying to convert a hexadecimal number (string). The number is truncated to 32 bits, which is not what I want. For example, the number 28037546508295 (double) must be 0 x 198000000007. LabVIEW truncates and the resulting string is 0x7FFFFFFF, using number of Hex String.vi. I'm stuck. Thank you.

    'Number of hexadecimal string' accepts only data of I32. So, you should see a red dot of coercion when you connect your floating point number.

    You must use "Format of value" (also in the String > number of rope/coercion-pallet) and use '%x' as a format string.

    hope this helps,

    Norbert

  • How convert string to number

    How convert string to number


    my character


    Select form double to_number ('1,6,9,4'); my putting here 1,6,9,4

    get the character of number conversion error.

    concerning

    Published by: vr on March 31, 2011 23:59

    Published by: vr on March 31, 2011 23:59

    VR says:
    Getting error while the conversion of character to the number in instring is possible to get the position of the channels at one time

    I have the following table, called pack

    Acct_No pack2 pack3 pack1
    1000 10101011 111111101 01010101111

    Select * Pack
    where instr (pack2, ' 1') and * (to_number (replace('1,6,9,4',','))); * - getting values of function as string '1,6,9,4'

    If you want to retrieve lines where the position of the first "1" in the pack2 chain is one of the positions in your list number e.g. position 1, 6, 9, or 4?

    Something with regexp_like can help...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with pack as (select '1000' as acct_no, '10101011' as pack1, '111111101' as pack2, '01010101111' as pack3 from dual union all
      2                select '1001', '10101011', '000011111', '10101010110' from dual union all
      3                select '1001', '10101011', '000000001', '10101010110' from dual)
      4  --
      5  -- end of test data
      6  --
      7  select pack.*, case when regexp_like('1,6,9,4','(^|,)'||to_char(instr(pack2,'1'),'fm9999')||'(,|$)') then 'Yes' else 'No' end as x
      8* from pack
    SQL> /
    
    ACCT PACK1    PACK2     PACK3       X
    ---- -------- --------- ----------- ---
    1000 10101011 111111101 01010101111 Yes
    1001 10101011 000011111 10101010110 No
    1001 10101011 000000001 10101010110 Yes
    
  • How to convert string to number in TS?

    Hello

    Anyone know how to convert string to number in TS?

    I couldn't find the Num() function.

    Thank you

    Val()

  • looking for VI where I can convert covert a number floating representation Q 11.5

    looking for VI where I can convert covert a number float Q 11.5 Representation and what exactly the means of representation Q 11.5.

    Kindly help me on the same.

    Seems to be good, but don't forget to round to the nearest integer.

    http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/round_to_nearest/

  • I need to know the file current date/time number stamp and the version of "spoolsv.exe" in Vista Home Premium 32-bit with SP2.

    I need to know the file current date/time number stamp and the version of "spoolsv.exe" in Vista Home Premium 32-bit with SP2. My spooler file got corrupted and I need to know what that the stamp of date/time on the latest version of the file: spoolsv.exe. I did a search on my hard drive and found 8 copies of the file with 7 different dates. I need to know which copy in my file C:\windows\system32\. I suspect that the problem was caused by some kind of malware. I think that some of the different versions on my machine of the initial installation of the Vista, SP1 and SP2. 3 copies that would explain. I tried all the suggestions in this forum and several others. I tried sfc/scannow and it simply replaces the corrupted file by another. I understand how works this file and a simple copy will do the trick if I knew that the file to use. I know that I don't want to go back to the first version of 2006.  BTW... my symptoms are all my printers have disappeared, and when I try to 'add a new printer' I get an error message saying that my spooler service does not work. When I opened my services window it shows that indeed, he is arrested, but I will not start because the description column contains only the code garbled machine indicating that the file is corrupted, or it may contain a virus. I had been using F-Prot until this virus got by and now I use AVG. I scanned my machine with several cleaning packages and it is is more infected, but I worry that from this corrupt file grow something. I know that the problem is not with my printers or drivers, because everyone on my home network can print on all of my printers. None of the people I know are on Vista 32 bit. They are all running System 7 or XP. I have XP, except that a few years ago I suffered from the "Syndrome of Pepsi" on my laptop and when I bought a new HP, it came with Vista.

    Version 6.0.6002.18294

    Day 17/08/2010

    Duration 14:11

    Duration may vary in different time zones.

  • Convert dates running in date ranges

    Good morning/afternoon/evening experts!

    Oracle - Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Version

    I have data like below

    Location & Date the number of employees in the absence of Vice

    DEPT_ID DAILY_DATE POSITION ABSENT_EMP

    ------------------------------------------------------------

    1981 13 OCTOBER 2015 HR EXEC 1

    1981 14 OCTOBER 2015 MARKETING 2

    1981 15 OCTOBER 2015 MARKETING 2

    1981 15 OCTOBER 2015 ADMIN 2

    1981 16 OCTOBER 2015 HR EXEC 1

    1981 16 OCTOBER 2015 MARKETING 1

    1981 17 OCTOBER 2015 MARKETING 1

    1981 17 OCTOBER 2015 ADMIN 2

    1981 18 OCTOBER 2015 MARKETING 3

    1981 18 OCTOBER 2015 HR EXEC 1

    1981 18 OCTOBER 2015 ADMIN 2

    -------------------------------------------------------------

    -Please note that if any employee is absent there is no line for this date

    Expected - result

    DEPT_ID, START_DATE END_DATE POSITION ABSENT_EMP

    --------------------------------------------------------------------

    1981 OCTOBER 13, 2015 18 OCTOBER 2015 1 HR EXEC

    1981 OCTOBER 15 OCTOBER 14, 2015 2015 MARKETING 2

    1981 OCTOBER 17 OCTOBER 16, 2015 2015 MARKETING 1

    1981 OCTOBER 18, 2015 18 OCTOBER 2015 MARKETING 3

    1981 OCTOBER 15, 2015 15 OCTOBER 2015 ADMIN 2

    1981 OCTOBER 18 OCTOBER 17, 2015 2015 ADMIN 2

    --------------------------------------------------------------------

    Thanks in advance!

    Looks like a job for: 101 PL/SQL: grouping sequence ranges (method Tabibitosan)

  • convert date format period

    Hi all

    Here are my existing query which I run another tool to extract data from oracle-

    Select * from transactionTbl

    WHERE

    DATE > = TO_DATE (' $(vAppStartDate)', "DD/MM/YYYY")

    AND DATE < = TO_DATE (' $(vAppEndDate)', "DD/MM/YYYY")

    variables-

    -vAppStartDate = 06/01/2014

    -vAppEndDate = 30/06/2015

    Rather than use the Date column in the WHERE condition, I want to use PeriodID of column existing in the same table, to make the query faster.

    The period column is in below format.

    PeriodID format-> 201294 //means 2012Q 4. So 9 means Q

    Since I'm on variables, the values are always to the date format, so my requirement is first change variable date from periods of format.

    I wrote the pseudo-code, because I of course know how to convert date format periodID. Q also means in the periodID 9.

    Select * from transactionTbl

    WHERE

    PeriodID > = period_function (TO_DATE (July 1, 14 ',' DD/MM/YYYY '), 'YYYYxx')

    AND PeriodID > = period_function (TO_DATE (July 1, 15 ',' DD/MM/YYYY '), 'YYYYxx')

    Please help me with the query.

    Thank you!

    Calling a user-defined function is likely to slow down your query.

    What's the problem with just using regular date formatting strings for example

    SQL > select to_char (to_date('15/09/2014','DD/MM/YYYY'), 'YYYY "9" Q') of double;
    TO_CHA
    ------
    201493

    1 selected line.

  • convert data from oracle to sql server functions

    In oracle, I get the result.

    floor ((trunc (INF. INFUSION_DTE) - trunc(S.BIRTH_DTE))/365.25) as PATIENT_AGE,)

    example: patient_age is 30

    How to write in sql server, looking for the same result as an oracle.

    CONVERT (VARCHAR (12), t.event_dte, 111) event_dte,.

    CONVERT (VARCHAR (12), p.birthday, 111) anniversary.

    Google is your friend... search for "sql server convert date of birth age" and you will get many examples. And here's one:

    DATEDIFF (hour, p.birthday, t.event_dte) / 8766 as age

    HTH,
    Brian

  • convert date in words

    I want to convert date in words
    example: 27-mar-2013 to 27 March twenty thirteen


    running version
    Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> SELECT REPLACE (TO_CHAR (TO_DATE ('25-Mar-2013', 'dd-mm-yyyy'),'fmddspth month year'),'-',' ') spdt FROM DUAL;
    
    SPDT
    -------------------------------------------------------------------
    twenty fifth march twenty thirteen
    
    SQL> SELECT REPLACE (TO_CHAR (sysdate,'FMDdspth Month Year'),'-',' ') spdt FROM DUAL;
    
    SPDT
    -------------------------------------------------------------------
    Thirtieth May Twenty Thirteen
    
  • VARCHAR2 data type do not convert date

    Dear gurus

    Version of database - 10.2.0

    I have a problem of varchar2 data type do not convert date...

    I have a table like


    SQL > table desc.
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    NAME VARCHAR2 (10)
    RECORD_DATE VARCHAR2 (20)

    and the record consists are...

    SQL > select * from table;

    NAME RECORD_DATE
    ---------- --------------------
    Nimai 09/09/2012 09:10
    Nimai 09/09/2012 10:10
    Scott 09/09/2012 11:10
    Scott 09/10/2012 10:00
    Nimai 09/10/2012 11:00


    If the "Record_date" column that's 09/09/2012(dd/mm/yyyy)

    09/09/2012 and I want to query the records which includes the date ' select * from table where record_date = 09/09/2012 "...
    This work of query...

    Select * from table where
    TO_CHAR (to_date (substr(record_date,1,10), ' dd/mm/yyyy'), ' dd/mm/yyyy')
    =
    TO_CHAR (to_date (substr('09/09/2012',1,10), ' dd/mm/yyyy'), ' dd/mm/yyyy')
    ;

    But if the "record_date" column that's 9/9/2012(d/m/yyyy) I did not what to do which function to use? /

    Help, please!

    Thanks in advance
    Nimai kinzonzi

    Published by: 955748 on September 22, 2012 03:47

    Published by: 955748 on September 22, 2012 04:10

    Hello;

    Keep things simple: (get rid of TO_CHAR)

    SELECT TO_DATE ((substr (record_date, 1, 10), ' DD/MM/YYYY') of?)

    TO_DATE (substr (record_date, 1, 12), "HH24 MON-DD-YY")

    Best regards

    mseberg

Maybe you are looking for

  • Mail does not appear to be updated on my iPhone.

    The mail on my iPhone function does not work correctly. Mail arrives regularly on my iMac, but not my iPhone. When I go to the mail function, it remains in the mode of 'check' the e mail for a minute or two. Then it says "(mis à jour à 629 am) well w

  • Thunder Bird does not open email, even with a password

    On our laptop windows 7, using mail electronics thunderbird. He just started asking for a password. Do not need at this point. Therefore, we would put in the password, and he rejects it and will not open the e-mail. We go to our webmail from comcast,

  • Satellite 5200 701: key FN and F5 not working

    Hello I've updated the Satellite 5200 701 XP Home, XP SP2 prof. Now I can't go to the projector to see the video with the FN and F5 keys.The nVidea Drive and the Hotkey Utility is installed.Wath are the error? Sorry for my bad English.

  • W530 Bare Metal with ESXi 5.1 - Possible!

    Guyz! This will be good news for all those who want to wear metal ESXi W530 5.1. With simple clicks of customization, the whole installation runs smooth and Nice. For those who are interested. Answer in the thread and a lot of fun to share with you t

  • RAM Standard PCI controllers, no drivers are installed for this controllers (19)

    I have Windows XP Pro SP3 IE 8 drive C: D: and G: My Book Under devices - devices of the System Manager, looking I found what I wrote in the title. Question: is it normal or if each need a driver? I have to check each of them, supposedly 'works corre