How to extract the date of birth of the employee Table

Hi experts,

I'm new to SQL, help for my problem Pls

I saw an employee table
CREATE TABLE 'NIM_EMP '.
(VARCHAR2 (20) "EMP_NO")
"EMP_NAME' VARCHAR2 (100),
VARCHAR2 (50) "EMP_DESIG."
'HIRE_DATE' DATE,
NUMBER OF "EMP_SAL."
NUMBER OF "EMP_DEPT."
DATE OF THE "DATE OF BIRTH".
) ;

with data is as

Emp_No - 203
EMP_Name - Thérèse
EMP_Desg - system administrator
HIRE_Date - 10/12/2011
EMP_SAL - 25000
EMP_DEPT - 10
DATE OF BIRTH - 09/02/1987

Problem-1 - I want to show the birthday information to all users, because "it is today the anniversary of Mr.Upendran as - 25 years"

Problem-2 - "today, Mr. Upendran is completed a year of Service in our concern" (this is based on the Date of HIRING)

How to extract data from SQl

Thanks in advance,
Thérèse

913370, you are right in both cases. I have corrected my code for the raw material.
The second question may be fixed, because there is no sex information in the table.

Tags: Database

Similar Questions

  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

  • How to extract the values of XMLTYPE column,

    SQL > create table temporary global xmtype_tab (xmlfile xmltype);

    SQL > select * from all_directories;

    SYS RESTOREDIR/home / / dbimptask /.

    insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

    1 line of creation.

    SQL > select * from xmtype_tab;

    XMLFILE
    --------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


    How to extract the values inside each tag?


    XML file has the following data...


    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
    < > 9600 BAUD_RATE < / BAUD_RATE >
    < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
    < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
    < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
    < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
    < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
    < / ROW >
    < / LINES > ';

    I use the Oracle 10.2.0.3 version...

    Why does this work?

    You are missing the tag of the ROWSET:

    select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
      from xmltype_tab
     where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
    
  • How to extract the Image to XML Format?

    Hello

    I use Oracle as our database.
    In the Employee Table, it the column of Type Blob.


    I extract all the data (such as name, Sal, age, Dept) of the Employee Table in XML format.

    Now, there's also a column Blob added, please tell me how can I extract this Image Format as XML?

    Thank you.

    You can use base 64 format.

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to upgrade the parent table and child by updating the parent table

    I have a parent EMPLOYEE table that includes columns (sysid, serviceno, employeename...) sysid is the primary key, serviceno is the Unique key and I have DEPENDENT child table includes columns (sysid, employee_sysid, name, date of birth...) there still SYSID is a primary key for the table of dependants, employee_sysid is a foreign key in the EMPLOYEE table.

    Now I want to change SYSID (with the help of the sequence) in the EMPLOYEE table that they want an update in the table of people dependent

    Note: I have 10000 records in the EMPLOYEE table as I have 5 more children tables that need to update new SYSID.

    Please help me

    first disable FOREIGN KEY constraints.
    You can update Parent and child record with the help of the trigger.
    Here I give you an examlpe... It can help u.

    create a parent (id number primary key, name varchar2 (100)) table
    /
    create table child_1 (primary key id, p_id number number, date of birth, date)
    CONSTRAINT FK_id FOREIGN KEY (p_id) REFERENCES parent (ID))
    /
    create table child_2 (key primary id, p_id2, addr varchar2 number number (1000))
    CONSTRAINT FK_id2 FOREIGN KEY (p_id2) REFERENCES parent (ID))
    /

    Insert some test data for the parent tables and children.

    change the constraint to disable child_2 table FK_id2
    /
    change the constraint to disable child_1 table FK_id2
    /

    CREATE OR REPLACE TRIGGER delete_child
    BEFORE parent UPDATE ON
    FOR EACH LINE
    BEGIN
    UPDATE CHILD_1
    P_ID =:NEW.ID SET
    WHERE P_ID =:OLD.ID;
    UPDATE CHILD_2
    SET = P_ID2: NEW.ID
    WHERE P_ID2 =:OLD.ID;
    END;
    /

    then Upadte parent table primary key col and check the children tables.
    do enable constraints...

  • How to find the employee is rehired

    Hello

    How to find the employee is rehired?

    through Front End and back End

    Thank you.

    You're looking to identify if an employee was re-employed, or looking to find all employees who were rehired?

    To determine if an employee was re-employed:
    (1) place you * HRMS Manager > people > enter & maintain
    (2) look at the employee's most recent Start Date field
    (3) compare this to their first Date field engaged in the Services tab

    If the two are different, it means that the employee was re-employed.

    Technically, each period of employment is linked to their period of Service. They will be on the per_periods_of_service table. So, there are 3 rows in per_periods_of_service if an employee was re-employed twice (that is to say, initially engaged and then reembauche twice).

    I hope this helps.

  • How to read the color table in a subvi?

    How to read the color table in a subvi? Is it made by a reference to the table or with a global variable? For a better understanding of the problem, I added to vi. Run the "run.vi." I want to see

    the background color of the table "run.vi" in the subvi called "read color.vi".

    How can I do?

    Thanks in advance

    Norick

    pop up on the wire table refernece and establishes 'control '. Add this control to the icon of the sub - VI decision-making and then wire ref of the appellant to this Terminal VI so the calling VI move the ref to the Subvi.

    Ben

  • How to configure the partition table for SSD?

    Drive: 32 GB SSD

    I accidentally delete without backup partition table information and would like to know how to put the partition table, I can access the tools of partition table, but do not know how to define.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hello

    Thanks for posting your query in Microsoft Community.

    The SSD could be seen in the disk management window, and you could name and set up as another hard drive internal. To create a partition or volume on a hard disk, you must be logged in as an administrator, and there must be unallocated disk space or free space in an extended hard disk partition. To repartition your hard drive, please consult the following link and check if it helps.

    I can I repartition my hard disk?

    Additional information:

    Create a new Partition on a hard disk in Windows 7

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • How to create the logical tables &amp; how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • How to get the underlying tables

    Hi all

    EBS R12.2

    How can I get the underlying tables of the following form?

    Capture.PNG

    Thank you very much

    Jen

    Hello

    Go to help-> review-> properties-> point.

    That's how you get the base table (FND_USER_RESP_GROUPS_INDIRECT):

    Kind regards

    Bashar

  • How know what the largest table of my oracle database?

    How know what the largest table of my oracle database?

    SELECT * FROM
    (
    SELECT
    NOM_SEGMENT,
    SEGMENT_TYPE,
    BYTES/1024/1024 MB
    TABLESPACE_NAME
    Of
    DBA_SEGMENTS
    WHERE
    SEGMENT_TYPE = 'TABLE '.
    ORDER BY DESC 3
    )
    WHERE
    ROWNUM<=>

  • How to mark the physical tables as "cacheable"

    Hi all

    Can someone tell me please how to mark the physical tables as "cacheable".

    Thnaks a lot

    You can make cacheable table by clicking twice on the table or go to the properties of the table. You can designate specific time duration for the year, month, days need to keep cacheable. Remember do this on the base tables will affect all alias tables.

    Thank you
    Amol

  • How to recover the deleted table

    Hai

    How to recover the deleted table

    the IMP log = = file tables =

    fromuser =' 'touser =' '
    are you new on s/n? (Sorry for the request this because you asked the steps to import a single table). If you read the docs of oracle, you would have not asked this question

    Kind regards
    Pavan
    http://pavandba.WordPress.com

Maybe you are looking for

  • I can't download Firefox from Chrome or IE

    I tried to download Firefox for a few days now, way behind Chrome and IE. I can't use Chrome. When I try to download it from IE it will happen at some point and tell me that the download has been interrupted and press OK to resume, but when he took o

  • Palm TX is no longer able to sync

    Hello I have a Palm TX and run Windows 7 on a Dell laptop.   The synchronization was going well through my network wifi at home, until today.  Now, it will not synchronize the network, either through the cable. Other messages, I see that some have re

  • Upgrade of RAM for Satellite Pro L300-1cz

    Hello! I want to upgrade the RAM on a L300-1cz. What I have to buy Toshiba memory or can I use [Kingston Value RAM KVR800D2S5 / 2G | http://www.valueram.com/datasheets/KVR800D2S5_2G.pdf] (standard 256 M X 64 Non - ECC 800 MHz 200 - pin SODIMM Unbuffe

  • Pavilion g6 1320 - is: laptop won't start not

    I recently had a problem with my pavilion laptop g6 series 1320 - themselves. When I hit the power button a black screen will appear saying that the hard drive is not found. However, when I rebooted the system, windows load appeared but it does not c

  • OfficeJet 8500 Wireless problem

    Hello - my printer all-in-one Officejet 8500 wireless worked fine until I replaced my router to a BT Home Hub 4. I have no problem with the router, but to use the wireless printer, I need to enter the key wireless, so it can connect it. Unfortunately