The age factor

Guyz,

I have a text field on my module called DOB (Date of birth) and a disply Age column. How to calculate and display the age in my area of age.

have me/JJ/AAAA format of data when the user enters the data in DOB on key-next-item trigger, it will calculate the age and treats the next field.

How can I calculate this age?

Concerning

Houda

something like this:

select trunc( ( sysdate - :DOB ) / 365 ) from dual

or

:AGE :=  trunc( ( sysdate - :DOB ) / 365 ) ;

Tags: Oracle Development

Similar Questions

  • What element is the limiting factor?

    Greetings.  A previous employee in my company had set up a a universal station machine Instron who communicated with Labview via GPIB to test.  This station has served us for the last 6 years, but now we need to upgrade and I do not know what component to upgrade.  Sorry that my first experience with labview (other than by using the front of the GUI).  In the last days, I read the manual of Labview and it seems fairly intuitive.

    Pretty much all I want to do is read my load and position several times per second.  In reading the other posts and the manual, I was able to move the instrument I/O Assistant in a flat sequence structure and surround by two millisecond timers.  He confirmed that the I/O intrument Wizard is the limiting factor in the block diagram.  Currently, we receive readings on each ms 160-220 (it is surprisingly incompatible).  It is the same value I get timers.  I wish that the time between the readings more as 20ms or even 2 ms.

    Here's my system:

    LabVIEW 7 Express

    Windows NT 4.0

    Pentium 2 400 MHz

    Card OR PCI-GPIB

    Instron 8511 controller

    In order to obtain performance I want what components do you think I will need to replace and that tests can do to learn more?

    Any help is greatly appreciated.

    -Daniel

    The user?  SCNR

    Speed your Instron GPIB just tells you that it would be able to send data fast enough. I do not know this instrument, but I would like to dig into the manual to see if it is possible together in a way he could make use of this speed. Perhaps by internal scripts, triggered material acquisition, low resolution... ask 1000 values once instead of a 1000 times.

  • I lost at the age of Mythology the titans expansion disc, but I still have key code, is there a way I can download age of mythology and put the key in to make it work?

    I lost at the age of Mythology the titans expansion disc, but I still have key code, is there a way I can download age of mythology and put the key in to make it work?

    Hi mxbot221,

    It is very unfortunate to know that you have lost the game disc. It is indeed a nice game that requires precision and work of the spirit.

    But the good thing is that you can download the demo version of the game among the links below and then, can enter the product key to unlock all its features.

    Here are the links: 1) http://www.microsoft.com/games/pc/titans.aspx

    2) http://www.microsoft.com/games/titans/downloads.aspx

    In addition, you can try to contact the Microsoft Supplemental Parts team for a replacement CD. To locate the phone number, visit the following Microsoft Web site: http://support.microsoft.com/default.aspx?scid=fh; EN-US; CNTACTMS

    Ref: How to replace Microsoft software or hardware, order service packs and upgrades, and replace product http://support.microsoft.com/kb/326246 manuals

    You can also try http://forums.gamesforwindows.com/ Games Microsoft support forum> for more discussions about the game.

    Hope this information was useful.
    -------------------------------------------------------------------
    Naveen
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The conquerors of the age of Empire

    Hello
    I bought the age of empire II gold edition. He performed with the expansion pack, the conquerors. I have a vista.
    When I play solo, it works really well. When I click on multiplayer, it bugs. I see the vista blue circle the mouse that says to wait. And wait... but it never ends! I can't select anything.
    I was sondering why I cant plsy TCP/IP multiplayer with my bro!
    I tried deactivating and activating Firewall, hamachi, gamespy and I downloaded the patches.
    Nothing works!
    Please help me!
    Thank you

    See what happens if you try to host in Safe Mode + Networking.

    STEPS TO START IN SAFE MODE WITH NETWORKING

    1. completely turn off your computer
    2 turn on your system and immediately start pressing the F8 key until you
    access a menu similar in nature:

    --------------------------------------------------
    Safe mode
    Safe mode with networking
    Safe mode with command prompt

    Last good known Configuration

    Start Windows normally
    --------------------------------------------------

    3. choose the option "Safe Mode with network.

  • Why can't I play at the age of the empire game

    When I want to play the game its asking me to insert the age of empire 3 - the war Chief

    Hello

    1. How are you trying to play the game?
     
    2. have you installed the game on your computer?
     
    3. What are the changes of hardware or software that are performed on the computer before the question?
     
    Please specify the problem you are experiencing.
    Please refer to,.
     
    Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.

    Hope this helps

  • How can I get the age of Mythology to work on Windows Vista, every time I put the disc in the computer installation screen dosnt pop up and nothing happens

    Moose title: How can I get the age of Mythology to work on windows vista

    every time I put the disc in the computer installation screen dosnt pop up and nothing happens the disc passes just for a bit and stops, and the cursor hangs a bit and I can't get the disk to the computer unless I restart the computer

    Hi rew55545,

    (1) is this problem limited only to the age of Mythology disc?

    (2) what version of the game you are trying to install?

    Method 1: Run the fixit available in the link below and check if that makes a difference

    Your CD or DVD drive cannot read or write media

    http://support.Microsoft.com/mats/cd_dvd_drive_problems/en-us


    Method 2:
    run the fixit available in the link below to resolve any problems with DVD player.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 3:  Select the boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • Using two dates to find the age...

    Hello

    I need to find the age of a person the DOB entered into service.  the age may be days or years depending on when the person was born.

    If the person was born is less than a year, so I should be able to calculate the number of days on the other, it should be over the years.

    I can't find the right way to do it.  I tried like this but its does not work as it should:

    todaysDate long = (new Date()) .getTime ();
    long date of birth = dobDateField.getDate ();

    long dateDiff = todaysDate - date of birth;

    multiply a day with 365 days (ignore the leap year for now)
    length of year = DateTimeUtilities.ONEDAY * 365;

    If (dateDiff< year)="">
    int NoOfDays = (int) (dateDiff / DateTimeUtilities.ONEDAY);
    ageEditField.setText (String.valueOf (NoOfDays) + "D");
     
    } else {}
    int NoOfYears = (int) (dateDiff/year);
    ageEditField.setText (String.valueOf (NoOfYears));
    }

    Help, please...

    int age = (diff / (1000 * 60 * 60 * 24));
    int years = 0;
    
    if( age >= 365 ) {
       years = age / 365;
    }
    
    if( years > 0 ) {
     // use years
    } else {
     // use days
    }
    

    Something like that.

  • IPCC Express - determine the age of current contact

    I am looking for a way to determine the age of the current contact during execution of the script. Something like a stage that would match the current age of current contact in a few seconds, then that could be stored in a variable and a value of trigger in an If / then. This could be used to trigger a backup CSQ overflow (if contact is longer than 90 seconds, then route the call to the queue of backup). Normally I use a loop and simply count the number of times that I spend in the loop, but for a specific application, it would be preferable to use the age contact instead. Any suggestions greatly appreciated.

    Thank you

    Chris

    Check:

    Download Statistical Reporting (general article)

    Purpose of report: CSQ ICD

    Field: Current wait time

    Position in queue

    Expected time-out

    Connected resources

    Row identifier: should be your CSQ identifier or string variable

    Statistical variable: Variable that you want to fill in your script.

    As you will see, there are many choices. I think that the current waiting time might be what you want.

  • I had the Age of Empires 2 on my computer for months, but now Windows says that it is no longer compatible. What should I do?

    I use Windows 7 and the properties of the game says now that it is only compatible with Win XP (service pack 3). He has never had this problem before.

    Hello

    1. have you made changes on the computer recently?

    2. What is the brand and model of the computer?

    3 has the same game works fine on the same computer before?  If the game worked fine previously normally, you can uninstall and reinstall the game.

    Method 1.

    According to the compatibility of Microsoft, this is the result: http://www.microsoft.com/windows/compatibility/windows-7/en-us/Details.aspx?type=Software&p=Microsoft%20Age%20of%20Empires%20II&v=Microsoft&uid=&l=en&pf=0&pi=3&s=Age%20of%20Empires%202&os=64-bit

    Note: You can also try the compatibility of the advice provided in the article and check if this helps troubleshooting.

    Method 2.

    Check the system requirements and if necessary, then install the latest version of Direct X and check if that helps.

     

    Method 3.

    If the program was working fine previously, then I suggest you run this program in compatibility mode and check if that helps.

    Make older programs run in this version of windows: http://windows.microsoft.com/en-US/windows7/Make-older-programs-run-in-this-version-of-Windows

     

    Method 4.

    You can ask your question to the Age of Empires Online Community here: http://support.microsoft.com/ph/7745

    Refer.

    Try to follow the steps in this article.

    The problems of the game performance: http://windows.microsoft.com/en-US/windows7/Fixing-game-performance-problems

    I hope this helps.

  • Where can I get the age of empires II set up the file for Windows 8

    I don't know where I will get a full version of age of empires II the age of Kings for windows 8. I tried Google, but I just. Please give me a link where I can get the full version of the game for windows 8.

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are unable to get age of Empire II set up the file.

    You can try to install it from Microsoft Store.

    https://support.Microsoft.com/en-us/pH/560/NL?WA=wsignin1.0

    You can contact the support of Age of Empires for better assistance.

    http://support.Microsoft.com/ph/7745

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • This method avoids the Hakan factor

    Hello

    I have a situation where a large partitioned table (lines 3 billion) with bitmap indexes is amended by adding a new column with the default value of-9999.

    So, this would cause the issue of the hakan factor.

    To avoid encountering the problem of Hakan factor does disable all the bitmap indexes on the table before the change to column and their reconstruction after column addition help?

    Thank you
    Ravi.

    Chilakamarthi wrote:

    Sorry I miseed he mentions in the first note...

    YES, I do the partition of Exchange here. First construction of the shell with DEC table based on the structure of table Source, then loading it with data (insert adds nologging) and later the Exchange as a partition in the table source with Swap Partition.

    So, any question of factor hakan will be because your "shell" table has a different hakan factor that the original table and NOT because you add a column to the table.

    One solution is to create your shell with the same factor of hakan. This query will show you the halin factor

    Select do.object_name, spare1, mod (spare1, 32768)
    sys.tab$, user_objects do
    where do.object_id = tab .obj$ #.
    and do.object_name = 'EMP_HAKAN. '

    Create a new empty table

    create the table emp_hakan in select * from emp where 1 = 2

    If you check the hakan now you will usually see it is 736.

    Load a few rows in the table and set the halin factor

    INSERT into emp_hakan select * from emp where rownum<>

    ALTER table emp_hakan minimize records_per_block

    Check factor of hakan. On my system, it's 2. It's because of the way the blocks are allocated.

    If I insert it, remove the lines and do the insert again and THEN set the factor hakan I get 5.

    You'll need to experiment some to get the correct value, but once you get the value corresponds to the original table, you're ok.

    DISCLAIMER - I do not recommend to use the approach described above as a global solution to this problem. Simpler is better. The solution which disables or removes the bitmap index can be more resources, but it is simple, has side effects, or no and can be easily script for use in any environment.

  • How to get the zoom factor in the management of the user interface?

    Hello

    Is it possible to get the zoom level in a handful of current doClick?

    In fact, I would like to calculate the size of the window where the video appears.

    I tried using source_to_frame but failed.

    Thanks in advance!

    Use event_extraP-> cbs.frame_to_source () to check the obtained coordinates of (100, 0).

    then result fracture of the X 100 and you have the scale factor.

  • I created form in adobe acrobat X 1 Professional. Now, I want to put logic on a field. I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    I created form in adobe acrobat X 1 Professional.

    Now, I want to put logic on a field.

    I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    The final document is a little drastic... Perhaps simply display an error message? In any case, you can do it like this, as a custom field validation script:

    if (event.value && Number(event.value)<18) {
        app.alert("You must be an adult to fill in this form!");
        this.closeDoc(true);
    }
    

    Be aware that using this code will close the file without saving it, and the user will lose all unsaved data that they have entered.

  • How to find the age of a child and snapshot number snapshot for a virtual machine.

    Hi all

    How to find the age of a snapshot for a virtual machine child count and snapshot.

    This code snippet should help... Assuming that you have the following entries:

    VM (VC:VirtualMachine)

    snapshot (VC:VirtualMachineSnapshot)

    System.log("====== Snapshot details for VM: "+snapshot.config.name+" ======");
    var snapshotTrees = vm.snapshot.rootSnapshotList;
    System.log("Snapshot Tree Count: "+snapshotTrees.length);
    for each (snapshotTree in snapshotTrees){
        showSnapshotInfo(snapshotTree, snapshot);
    }
    
    function showSnapshotInfo(snapshotTree, selectedSnapshot){
        if(selectedSnapshot == snapshotTree.snapshot){
            System.log("====================");
            System.log("Name: "+snapshotTree.name);
            System.log("Id: "+snapshotTree.id);
            System.log("Description: "+snapshotTree.description);
            System.log("createTime: "+snapshotTree.createTime);
            System.log("quiesced: "+snapshotTree.quiesced);
            System.log("replaySupported: "+snapshotTree.replaySupported);
            System.log("backupManifest: "+snapshotTree.backupManifest);
            System.log("snapshot id: "+snapshotTree.snapshot.id);
            System.log("state: "+snapshotTree.state.value);
            var childSnapshotList = snapshotTree.childSnapshotList;
            if(childSnapshotList != null){
                System.log("childSnapshotList length: "+snapshotTree.childSnapshotList.length);
            }
            System.log("");
        }
        if(snapshotTree.childSnapshotList != null){
            System.log("Children found: "+snapshotTree.childSnapshotList.length);
            for each (childSnapshotTree in snapshotTree.childSnapshotList){
                showSnapshotInfo(childSnapshotTree, selectedSnapshot);
            }
        }
    }
    

    During the passage of one of my virtual machines, here is an example of output I get:

    [2014-06-12 15:19:21.493] [I] Snapshot Tree Count: 1
    [2014-06-12 15:19:21.493] [I] ====================
    [2014-06-12 15:19:21.494] [I] Name: before upgrade to 5.0.1
    [2014-06-12 15:19:21.494] [I] Id: 31
    [2014-06-12 15:19:21.494] [I] Description:
    [2014-06-12 15:19:21.495] [I] createTime: Mon Mar 19 2012 13:48:57 GMT-0400 (EDT)
    [2014-06-12 15:19:21.495] [I] quiesced: false
    [2014-06-12 15:19:21.495] [I] replaySupported: null
    [2014-06-12 15:19:21.495] [I] backupManifest: null
    [2014-06-12 15:19:21.496] [I] snapshot id: snapshot-83
    [2014-06-12 15:19:21.496] [I] state: poweredOff
    [2014-06-12 15:19:21.496] [I] childSnapshotList length: 1
    [2014-06-12 15:19:21.496] [I]
    [2014-06-12 15:19:21.497] [I] ====================
    [2014-06-12 15:19:21.497] [I] Name: Before 5.1 upgrade
    [2014-06-12 15:19:21.497] [I] Id: 36
    [2014-06-12 15:19:21.497] [I] Description:
    [2014-06-12 15:19:21.498] [I] createTime: Fri Sep 21 2012 21:59:58 GMT-0400 (EDT)
    [2014-06-12 15:19:21.498] [I] quiesced: false
    [2014-06-12 15:19:21.498] [I] replaySupported: null
    [2014-06-12 15:19:21.498] [I] backupManifest: null
    [2014-06-12 15:19:21.499] [I] snapshot id: snapshot-84
    [2014-06-12 15:19:21.499] [I] state: poweredOff
    [2014-06-12 15:19:21.499] [I] childSnapshotList length: 1
    [2014-06-12 15:19:21.499] [I]
    [2014-06-12 15:19:21.500] [I] ====================
    [2014-06-12 15:19:21.500] [I] Name: Before Named Instance
    [2014-06-12 15:19:21.500] [I] Id: 37
    [2014-06-12 15:19:21.501] [I] Description:
    [2014-06-12 15:19:21.501] [I] createTime: Mon Nov 11 2013 13:40:46 GMT-0500 (EST)
    [2014-06-12 15:19:21.501] [I] quiesced: false
    [2014-06-12 15:19:21.501] [I] replaySupported: null
    [2014-06-12 15:19:21.502] [I] backupManifest: null
    [2014-06-12 15:19:21.502] [I] snapshot id: snapshot-236
    [2014-06-12 15:19:21.502] [I] state: poweredOff
    [2014-06-12 15:19:21.502] [I]
    
  • Join between tables header &amp; detail based on the age and group

    To find the amount of the age and the group in the table of detail based on age & group_id in header?

    Example: Take the seq_id = 1 mind, it has age = 60 & group_id = 23 (23 months).

    In the detail table xx_detail, the age column represents the age of the person (0-65 represents the age 0-65 and so on).

    If the age is null, while the rank indicates the Group (0-12 represents the group between 0-12 months). If the age is not null, then the Group 1, group 2, group 3 that data amounts.

    So now I must get the amount as 240 (like my seq_id header = 1, age = 60, group_id = 23, as it is covered by group age & 13-59 0-65). So I need a SQL to find the exact amount in detail based on the header record. We must go to settings & group_id age and get an amount of detail tables. Can anyone provide input how to achieve this in the most simple.

    1. SQL > select * from v$ version
    2. 2.
    3. BANNER
    4. --------------------------------------------------------------------------------
    5. Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    6. PL/SQL Release 11.2.0.3.0 - Production
    7. CORE Production 11.2.0.3.0
    8. AMT for Linux: Version 11.2.0.3.0 - Production
    9. NLSRTL Version 11.2.0.3.0 - Production
    10. SQL > xx_header desc ;
    11. Name Null?    Type                                     
    12. ----------------------------------------- -------- ----------------------------
    13. SEQ_ID VARCHAR2 (6)
    14. AGE                                                NUMBER
    15. START_DATE                                         DATE
    16. GROUP_ID NUMBER
    17. SQL > select * from xx_header;
    18. SEQ_ID AGE START_DATE GROUP_ID
    19. ---------------- ------ ------------------        ---------------
    20. 1 60 1 JANUARY 12 23
    21. 2 89 1 JANUARY 12 23
    22. 3 95 1 JANUARY 12 23
    23. SQL > xx_detail desc ;
    24. Name Null                                      
    ?    Type
  • ----------------------------------------- -------- ----------------------------
  • SEQ_ID VARCHAR2 (10)
  • AGE                                                   VARCHAR2(10)
  • GROUP1 VARCHAR2 (10)
  • GROUP2 VARCHAR2 (10)
  • GROUP 3 VARCHAR2 (10)
  • SQL > select * from xx_detail;
  • SEQ_ID AGE GROUP1 GROUP2 GROUP3
  • ---------- ----------           ----------            ----------     ----------
  • 1                                0-12              13-59       60-126
  • 1           0-65               120                 240         300
  • 1 66 - 135 100 80 400
  • Hello

    Is this the same question you asked 3 days ago

    https://forums.Oracle.com/thread/2606197

    ?

    Whether it is or not, validate the information requested in this message, which is also in the FAQS of the Forum:

    https://forums.Oracle.com/message/9362002

    If it's the same question, do not post a new thread.  Mark it as "Answered" immediately and continue in the original thread.

Maybe you are looking for