Help me plz urgent

dear members
i have 2 tables
employee
empno number,
name varchar2(30),
deptno number);
attandance
empno number,
deptno number,
type varchar2(10)
i have 95000 record attandance table...now that time i have update employee table and update employee deptno...bcoze lot of employee chane his dept
so i want to create a query who update a attandance table deptno campare to employee table deptno..
any body help me
thanks a lot

Assuming that empno in attendance is a foreign key into employee, you really should only be storing deptno once. Storing redundant data in multiple tables is a sure-fire recipie for this sort of data integrit problem
UPDATE employee emp
   SET deptno = (SELECT deptno
                   FROM attendance att
                  WHERE emp.empno = att.empno)If there are employees in the emp table that don't exist in the attendance table, you would need to add a WHERE EXISTS clause to this to avoid setting the department number to NULL. If there are multiple rows in the attendance table for the same empno, you would have to modify the subquery to find a single row per employee number.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • I want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    Welcome to the Apple Community.
    You can only wipe your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Jailbroken phones cannot be discussed in an Apple forum. If you synced your phone with your computer the texts will be in the backup, so if you restore the backup you may get them back, but with a jailbroken phone it's anybody's guess what will happen.

  • Regarding drop down list,  any body help me plz.. very very urgent

    i have to create a drop down list and in that if i select a value it should go to select query and display hte result in the output
    for example if i select open in the inout list. that should go to a partiucular query which i write and after that when i process the report that option open should be displayed in the output
    any body help me plz.. very very urgent

    Check  code below..
    TYPE-POOLS:  vrm.
    CONSTANTS: c_pgp_cmd(20) TYPE c VALUE '/opt/pgp/bin/pgp'.
    DATA : droplist TYPE vrm_values,
           dropval LIKE LINE OF droplist,
           w_command(2000) TYPE c VALUE '/usr/local/bin/ssh'.
    DATA:  BEGIN OF t_cmdres OCCURS 0,
             line(500),
           END OF t_cmdres.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS:  tar_sys(10) TYPE c AS LISTBOX VISIBLE LENGTH 20 LOWER CASE,
                 filepath TYPE esefilepath,
                 pgpkey(1000) TYPE c LOWER CASE,
                 option(25) TYPE c AS LISTBOX VISIBLE LENGTH 15 LOWER CASE,
                 pass(100) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      PERFORM set_screen.
    AT SELECTION-SCREEN OUTPUT.
      IF option EQ 'encrypt'(000).
        LOOP AT SCREEN.
          IF screen-name = 'PASS'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ELSEIF option EQ 'set-preferred-ciphers'(001).
        LOOP AT SCREEN.
          IF screen-name = 'FILEPATH'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
    START-OF-SELECTION.
    write:/ 'Done'
    *&      Form  set_screen
    FORM set_screen .
      dropval-key = 'oapg18dv'(002).
      dropval-text = 'oapg18dv : DEV'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18te'(003).
      dropval-text = 'oapg18te : TEST'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18pr'(004).
      dropval-text = 'oapg18pr : PRD'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'TAR_SYS'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
      dropval-key = 'encrypt'(000).
      dropval-text = 'Encrypt'.
      APPEND dropval TO droplist.
      dropval-key = 'set-preferred-ciphers'(001).
      dropval-text = 'Set cipher'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'OPTION'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
    ENDFORM.                    " set_screen
    Reward if useful
    Function Module <b>VRM_SET_VALUES</b> is used to set values for droplsit..
    and be careful about Text Elements in this report.
    Regards
    Prax

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • I found My iPhone contacts on my friends Iphone we both have 4s! But we use the same apple ID and ICloud ID! How can undo what happened? all my private stuff is now on his phone!!! help me plz!!?

    I found My iPhone contacts on my friends Iphone we both have 4s! But we use the same apple ID and ICloud ID! How can undo what happened? all my private stuff is now on his phone!!! help me plz!!?

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Depend on which country you are in btw, for the US this should be 61 black and 61 tricolor. For most of europe this will be 301 black and 301 tri color. So to be sure tell me from which country you are.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Help me plz.. i,ve got a apple i phone 4 and i'm the 2 owner of it and i dont have it's apple id and passward for it and 1st owner doesnt know it too so what can i do for this plz help me....

    help me plz.. i,ve got a apple i phone 4 and i'm the 2 owner of it and i dont have it's apple id and passward for it and 1st owner doesnt know it too so what can i do for this plz help me....

    Neither can we.  Only the original owner can help you, surely he/she can reset their password.

  • I have a lock rotation on my iPad 2 and it won't change from landscape and I tried to reset it but nothing and I tried from lock rotation to mute but nothing and I don't no what to do now. Can u help me plz?

    I have a lock rotation next ti my battery on my iPad 2 and it won't change from landscape and I tried to reset it but nothing and I tried from lock rotation to mute but nothing and I don't no what to do now. Can u help me plz?

    With Settings > General > Use Side Switch To set to 'Lock Rotation' have you then moved the switch on the right-hand side of the iPad above the volume control 'off' ?
    Or with the switch set to control 'notification mute' you should be able to unlock rotation via the far left of the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't being controlled by the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • HT204003 Since I downloaded version 1.06 my app store is not working anymore !?? Can u help me plz?

    Since I downloaded version 1.06 my app store is not working anymore !?? Can u help me plz?

    just reset your iphone and then re update it from itunes. then things should work smoothly

  • My ipad is freez...it only show a home screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    my ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    Have you tried to reset it? Hold down the sleep and home keys for about 20 seconds and see if you can get it to reboot.

  • My ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    my ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.plz help me.................thx u

    Option 1
    Try force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You need to be patient and repeat the above many times to recover your iPad

  • How can i set dynamice for week on Selection screen..pls help me..Urgent

    Hi..All
    please Help me .. i am very  confused..
    i need to set a varient for week which is dynamic on selection screen.
    b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
    how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
    pls help me..urgent
    thamks in advance.
    mayukh

    Hi,
    I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
    While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
    option and then choose current days + or - option from there.
    Rgds,
    HR

  • Hi pls help me its urgent

    hi experts'
    i have to generate asset utilization report in webdynpro
    inputs for report are some rfcs
    i get result from rfcs
    i need to float report i used bussinessgraphic object
    its not interactive
    if i go for tables
    how to create tables with drill down inside table
    how to set color for each cell of table depending on condition
    please help me
    its urgent
    and send me code n link

    Hi Vani,
    Your requirement has many things
    1. How to call RFCs
       https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    2. Once you have data, how to work with BusinessGraphics ?
      https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38
    (This docs contatins all the required info on webDynpro UIElements)
    3.Tables
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#46 [original link is broken]
    Regards,Anilkumar

  • Frustrating JSTL, help me plz

    I'm using Tomcat 5 and JSTL 1.1. I copied the JSTL files jstl.jar and standard.jar in Tomcat's /root/WEB-INF folder. Then I ran the following code
    <%@ page contentType="text/html" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <body bgcolor=lightblue>
    <form   method=post  action="demo1.jsp">
    NAME <input  type=text  name="text1"><br>
    PLACE<input  type=text  name="text2"><br>
           <input type=submit>
    </form>
    NAME:<c:out value="${param.text1}"  /><br>
    PLACE:<c:out value="${param.text2}"  />
    </body>
    </html>After clicking submit, the code failed to get the value. What's wrong in it? Do I need to copy those tld's in WEB_INF or do I need to make certain change in my web.xml file? I'm working hard since yesterday, help me plz.

    You are still using the JSTL1.0 uri
    The taglib import should be:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    (note the subtle addition of /jsp/ in there)
    See this thread for full details on setting up JSTL and Tomcat:
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0 rely #6

Maybe you are looking for