Need help in the creation of procedure

Hi all

Some body can you please help me in creating a procedure.
I have a 'NAME' table and column LNAME, FNAME, EMPID
now I have an EMPID_SEQ sequence.
I have data like
LNAME      FNAME      EMPID
JOHN        SMITH
JOHN        SMITH
PETER      PARKER
MIKE        JONES
MIKE        JONES
MIKE        JONES
Now, I want to write a procedure in order to give a number (EMPID_SEQ. NEXTVAL) for the same name and surname as

LNAME      FNAME      EMPID
JOHN        SMITH       1
JOHN        SMITH       1
PETER      PARKER       2
MIKE        JONES        3
MIKE        JONES        3
MIKE        JONES        3
can someone help me please by writing this procedure.
Thanks in advance.

Hello:

DECLARE
   CURSOR c
   IS
      SELECT DISTINCT lname,
                      fname
                 FROM names;
BEGIN
   FOR i IN c
   LOOP
      UPDATE names
         SET empid = empid_seq.NEXTVAL
       WHERE lname = i.lname AND fname = i.fname;
   END LOOP;
END;

Saad,
http://saadnayef.blogspot.com

Tags: Database

Similar Questions

  • New user needs help with the creation of an animation :)

    Hello

    IM fairly new to all Adobe Premiere Pro Im using CS6 and need help with it.

    I want to make a video and add a scene that looks like the beginning of this video Sarah the movie - YouTube , to be exact - the animation at the location where you type your user name and password, I can do that in Adobe Premiere Pro? I want to do exactly the same animation and no idea of how do

    Would appreciate any help!

    There are several ways to do so.

    One way would be to create a title with the name and title with the password.  Add the crop effect to each and the keyframe as necessary. Adjust the size and position as desired.

  • Need help in the creation of triggers

    Hi friends

    I need to set a trigger of DB, I have not used concept of triggers previously this is the 1st time that I will use the concept of trigger please advise me

    the requirement is

    I need to set a trigger of DB for a 'xxx' table if all orders is deleted from the table 'xxx' means the triggers must fire and fill the data offline at the other "yyy" custom table... I created the custum "yyy" with a few 6-column table (eg: del_by, ord_no, created_date etc.) Please suggest me how I can get my task your help he's be highly appreciable

    Thanks in advance
    AT

    Sorry, I meant actually after HAVING DELETE (and I forgot FOR EACH ROW) - I edited the post above.

    : Old MAN's recording of your xxx table is deleted.
    : NEW is the registration of your table xxx which is inserted if it was an INSERT trigger.
    If you create a trigger for UPDATE, you will have both a: OLD and one: NEW record.

    The optional clause of SEO simply allows you to rename the OLD and NEW to some other names if you wish.

  • Need help with the creation of a brush

    Hi guys,.

    I wanted to ask for help in creating a brush (even a link to a tutorial will be goon enough ).

    I got this example:

    Sample.png

    I've created a brush him, and I'm trying to get this kind of result:

    Result.png

    but it is only done to duplicate it and gives me this result:

    Test.png

    Can someone help me please understand what I need to set so that the brush behaves like a continuous brush rather than reproduce them?

    Thank you very much

    Shlomit

    what you need to do, is make a brush that resembles the tip of a brush. Photoshop already has several, but you can make your own that is going to be the best.

    get a brush and a place a bit like what made you, but do not paint a paint stroke. make it kindof grungy look. make your brush, making sure to desaturate and all.

    EDIT:

    Oh, and if you make the filling similar to 10-20% of your race will be better

  • Need help with the creation of SQL table

    Hi all

    I created a table, a month back. Now, I need to create another table in the same structure.
    Is there a way for dat I can get the script from the table I created earlier and use the same to create another.
    Or y at - it another way, so that we can create a table with the same structure of the existing table.

    Help, please.

    Kind regards
    Mohan

    Discover the function [DBMS_METADATA. GET_DDL | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_metada.htm#i1019414].

    Example:

    SQL> SET LONG 5000
    SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT') FROM DUAL;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    

    Published by: Centinul on January 11, 2010 08:01

  • Need help with the creation of a research or time slider bar

    Hello!

    I have three scenes in my fla and I want to create a time slider that shows the current framework of playing time and the total time of the image. Can someone help me on this.

    Thank you

    I made a few changes...

    Creates:
    txtFrameStatus
    TextField: html and multiline.

    mcBar
    A mc with a horizontal bar.

    VARs
    var movieFPS:Number = 12; Here set the FPS
    var porcent:Number;
    var currentFrame:Number;
    var totalFrames:Number;
    var totalSeconds:Number;
    var currentSeconds:Number;
    var textTime:String;

    function that presents information
    this.onEnterFrame = function (): Void {}
    currentFrame = _currentframe;
    totalFrames = _totalframes;
    us = Math.floor ((currentFrame / totalFrames) * 100);
    totalSeconds = Math.floor(totalFrames / 12);
    currentSeconds = Math.floor(currentFrame / 12);

    var cSeconds:Number = currentSeconds % 60; cSeconds = (cSeconds< 10)="">
    '0' + cSeconds: cSeconds;
    var cMinutes:Number = Math.floor(currentSeconds / 60); cMinutes =
    (cMinutes< 10)="" "0"="" +="" cminutes="" :="">

    var tSeconds:Number = totalSeconds % 60; (tSeconds = tSeconds< 10)="">
    '0' + tSeconds: tSeconds;
    var tMinutes:Number = Math.floor(totalSeconds / 60); tMinutes =
    (tMinutes< 10)="" "0"="" +="" tminutes="" :="">

    textTime = "Total images:" + totalFrames + "."
    ";
    textTime += "current Frame:" + currentFrame + "."
    ";
    textTime += "us:" + us + '%' + "."
    ";
    textTime += ' time Total: "+ tMinutes +": "+ tSeconds +". "
    ";
    textTime += ' current time: "+ cMinutes +": "+ cSeconds;"

    txtFrameStatus.htmlText = textTime;

    mcBar._xscale = us;

    if(porcent == 100) delete this.onEnterFrame;
    };

    --
    Kind regards
    Erick Souza
    www.ericksouza.com

  • I need help for the creation of rules - the very high values!

    Hello

    I have some troubleshooting by creating rules to HFM 11.1.1.3. I declarate a table where an account data are stored. There should be a stored digital data in another account of HFM (e.g. "EB_MITTEL"). The stored data are much higher than the value in the logfile ('write2File") showed. If I divide this value by 100000000000000 so good value.

    Example: The value in the log file: 16492,8691588785 (',' = the decimal delimiter)
    Value in the data grid: 164.928.691.588.785 ("'. ' separator = of thousands")

    Part of the rule file:

    Void

    Dim lMittelWert, lMaxWert, lMinWert

    lMittelWert = 0
    lMaxWert = 0
    lMinWert = 0
    a = 0
    For x = 1 to 13

    If arListe (x) <>0 then
    lMittelWert = lMittelWert + arListe (x)
    a = a + 1
    End if

    If lMaxWert < arListe (x) then
    lMaxWert = arListe (x)
    End If

    If x = 1 then
    lMinWert = arListe (x)
    End if

    Next

    lMinWert = lMaxWert

    For x = 1 to 13

    If lMinWert > arListe (x) and arListe (x) <>0 then
    lMinWert = arListe (x)
    End If
    write2file arListe (x)
    Next
    If <>0 then
    lMittelWert = lMittelWert / a
    End if
    KSM Exp ' a #EB_MITTEL.» ' C1 # "& C1Item &"="& lMittelWert
    KSM Exp ' a #EB_MIN. C1 # "& C1Item &"="& lMinWert
    KSM Exp ' a #EB_MAX. C1 # "& C1Item &"="& lMaxWert
    End Sub



    I hope someone can help me, thanks in advance. (and I'm so sorry for my bad English)

    Jürgen

    VB script using string to convert numbers in some languages require special attention during the handling of numbers. (French, German and other who use commas as the decimal separator).

    Internally, HFM VB Scripts use periods (.) as the decimal separator. One solution is to force the use of decimals and force the script engine to use decimal numbers by declaring the local to be English in the United States with:

    b = setLocale("en-us")

  • Need help with the creation of meeting of the calendar in the hive using SOAP

    Hi all

    Here is the SOAP envelope, I am sending you in the CalendarService on the hive:
    <? XML version = "1.0" encoding = "utf-8"? >
    < xmlns:S s: Envelope = 'http://schemas.xmlsoap.org/soap/envelope/' >
    < Body >
    < ns3:createMeeting xmlns:ns3 = "http://www.oracle.com/beehive/2010/01/ws".
    xmlns:ns2 = "http://www.oracle.com/beehive" >
    < creator >
    423d:1645:clnd:A0438CC3371B5F60E040010A1E1E064E000000002F34 < id > < /ID >
    < / creator >
    < meetingUpdater >
    < end > 2011 - 07 - 07T 17: 00:00.000 - 04:00 < / end >
    < includeOnlineConference > false < / includeOnlineConference >
    < inviteeParticipantStatus > ACCEPTED < / inviteeParticipantStatus >
    < inviteePrimaryClientReminderTrigger >
    < offset > - P0Y0M0DT0H10M < / offset >
    < relativeTo > START < / relativeTo >
    < / inviteePrimaryClientReminderTrigger >
    < inviteePriority > NONE < / inviteePriority >
    < inviteePropertiesUpdater >
    < propMods >
    < collabProperty > < / collabProperty >
    operation of <>< / operation >
    < propertyName > < / propertyName >
    < / propMods >
    < / inviteePropertiesUpdater >
    < inviteeTransparency > DEFAULT_TRANSPARENCY < / inviteeTransparency >
    < locationName > PTO < / locationName >
    < participantUpdaters >
    [email protected] < address > < / address >
    < name > [email protected] < / name >
    < operation > ADD < / operation >
    423d:1645: user: 051C9D4373144A67B8069F4C0B5C5A460000000000F3 < member > < / participant >
    < / participantUpdaters >
    < start > 2011 - 07 - 07T 08: 00:00.000 - 04:00 < / start >
    < status > CONFIRMED < / status >
    < textDescription > Maynard PTO < / textDescription >
    < xhtmlFragmentDescription > < / xhtmlFragmentDescription >
    < / meetingUpdater >
    < type > MEETING < / type >
    < / ns3:createMeeting >
    < / Body >
    < / s: Envelope >

    I return the following result:
    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < ns4:Envelope xmlns:ns4 = "http://schemas.xmlsoap.org/soap/envelope/".
    xmlns:NS3 = "http://www.oracle.com/beehive/2010/01/ws".
    xmlns:ns2 = "http://www.oracle.com/beehive" >
    < ns4:Body >
    < ns4:Fault >
    NS4:Server < faultcode > < / faultcode >
    < faultstring > TM_INTERNAL_ERROR < / faultstring >
    < detail >
    < actionString > please notify your system administrator. < / actionString >
    < actionToken > TM_INTERNAL_ERROR_ACTION < / actionToken >
    < causeString > an unexpected internal error has occurred. < / causeString >
    < causeToken > TM_INTERNAL_ERROR_CAUSE < / causeToken >
    < effectString > the requested operation cannot be performed. < / effectString >
    < effectToken > TM_INTERNAL_ERROR_EFFECT < / effectToken >
    oracle.csi.CsiException < exceptionType > < / exceptionType >
    < / details >
    < / ns4:Fault >
    < / ns4:Body >
    < / ns4:Envelope >


    I'm passing in the wrong settings or something wrong with my server of hive?

    Hi Maynard,

    Your soap request is not formatted correctly. Here's a quick example I did.

          MeServiceSoap meServiceSoap = getMeServiceSoap(host, user, password);
          CalendarServiceSoap calendarServiceSoap = getCalendarServiceSoap(host, user, password);
    
          com.oracle.beehive.ObjectFactory objFactory = new com.oracle.beehive.ObjectFactory();
          Projection projFull = objFactory.createProjection();
          projFull.setValue("FULL");  
    
          Calendar defCalendar = meServiceSoap.readMyPersonalWorkspace(projFull).getDefaultCalendar();
    
          MeetingCreator meetingCreator = new MeetingCreator();
          meetingCreator.setCalendar(defCalendar.getCollabId());
          meetingCreator.setType(OccurrenceType.MEETING);
    
          MeetingUpdater meetingUpdater = new MeetingUpdater();
          meetingUpdater.setName("MyMeeting" + System.currentTimeMillis());
    
          DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
          XMLGregorianCalendar start = datatypeFactory.newXMLGregorianCalendar(2011, 7, 15, 11, 0, 0, 0, 0);
          meetingUpdater.setStart(start);
    
          meetingCreator.setMeetingUpdater(meetingUpdater);
    
          Meeting meeting = calendarServiceSoap.createMeeting(meetingCreator, projFull);
          System.out.println(meeting.getCollabId().getId());
    

    and here is the exchange of soap request

    
    
      
        
          
            ward1
            
            dummypwd1
          
        
      
      
        
          
            
              
              04A7:0227:clnd:A7683FCC881DEABEE040548C87827FA60000000186A8
              clnd
            
            
              MyMeeting1310071418478
              2011-07-15T11:00:00.000Z
            
            MEETING
          
          
        
      
    
    
    
    
      
        
          
            
              
              04A7:0227:invt:55F868509FE5459A825EB6E802D91B89000000000000
              invt
            
            ...
          
        
      
    
    

    It will be useful.
    Ward

  • need help in the creation of clouds

    Hey - someone can help me out in my attempt to create clouds similar to those shown here - http://www.yeswade.com/clouds.html

    I have Fireworks 8, with many exotic skin, and also Photoshop CS2 filters if necessary.

    Thanks for your suggestions.

    yesdream wrote:
    > Hey - can someone help me in my attempt to create similar to clouds
    > shown here - http://www.yeswade.com/clouds.html
    >
    > I have fireworks 8, with many exotic skin filters and also Photoshop CS2
    > If necessary.
    >
    > Thanks for your suggestions.

    It seems to me like a collage with pictures of clouds.

    --
    Linda Rathgeber [PVII] * Adobe Community Expert-Fireworks *.
    --------------------------------------------------------------
    http://www.Projectseven.com
    Fireworks Newsgroup: news://forums.projectseven.com/fireworks/
    CSS newsgroup: news://forums.projectseven.com/css/
    Design aid kits: http://www.webdevbiz.com/pwf/index.cfm
    --------------------------------------------------------------

  • Speed/performance of my mac mini (mid-2010) is very slow. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.

    My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years.  Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.  You will also need to get data out of old PowerBook G4.

    < object edited by host >

    We are users like you.  Search locally by using something like Yelp or similar

    http://www.Yelp.com/search?find_desc=Apple+repair & find_loc = Chicago, + IT & start = 0 & ortby = rating s

    or read a few links which may be relevant on this forum about the slow mac mini

    http://BFY.tw/5C63

  • Need help with the installation of an adapter of Palit GeForce 9500GT Super chart - 512 MB in a M2N68 (narrated

    Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.

    Hello

    The link below is a guige to install a video card in your Pc.  In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below.  If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.

    http://support.HP.com/us-en/document/c01700855

    Kind regards

    DP - K

  • Satellite Pro A300-15V, I need help in the Organization of my startup list

    Hello everyone!

    I need help in the Organization of my startup list:

    (Why should Toshiba button support I this program if my laptop doesn't have multimedia keys? OR maybe this program for something else?)
    ItSecMng (although I have disabled the Bluetooth Manager to run when starting from this point still remains in the startup)
    Agent of filtering of Audio Conexant high definition (what is this program? Do I really need to start?)
    TOSHIBA Power Saver
    Toshiba Flash Cards
    RAID event monitor

    So, my friends. Could you give a valuable suggestion whether or not it is prudent to disable startup above entries? I want to speed up my laptop at the highest possible level.

    Thanks a lot for your time!

    Kind regards
    Osman.

    My laptop:

    Toshiba Satellite Pro A300-15V (PSAJ5E) => NOT have multimedia keys except the FN keys.

    > Toshiba Button support (why should I this program if my laptop doesn't have multimedia keys? OR maybe this program for something else?)
    You can disable it. If your mobile phone does not support the multimedia buttons then this tool is useless.

    > ItSecMng (although I have disabled the Bluetooth Manager to run when starting from this point still remains in the startup)
    I don't know what would make this process, but you can disable this in msconfig-> tab start Mr. If it would take in the future, then you could turn it on again.

    > Agent of filtering the Conexant high definition Audio (what is this program? Do I really need to start?)
    I think that this is necessary. It could improve your audio

    > Toshiba Power Saver
    This is important. It s an additional saving of Toshiba option for Win 7

    > Toshiba Flash Cards
    This tool controls the FN keys.

    > RAID Event Monitor
    Hmm so you don t have two hard disks, then you can try to disable it too.

  • I need help to the new photo of my photos from iphoto on El Capitan. Any help would be appreciated.

    I need help to the new photo of my photos from iphoto on El Capitan. Any help would be appreciated.

    To migrate your iPhoto library to Photos for Mac, drag it in the Photos icon in the Dock.  Photos will read the iPhoto library and create a new library of pictures of him.

    Is your photo library in iPhoto on an external drive? The migration will work that if the external hard drive Mac OS extended (journaled) file system.  If the library is on a disk with a different file system, Ministry of the environment of the library of a correctly formatted disk.

  • I need help with the program of Photos on my macbook pro

    I use a Macbook Pro with OS of Yosemite. I really need help with the Photo program. I never really got the hang of IPhoto and now that it's a new program, I'm really confused. Where can I go to learn this without waiting for the next workshop in a local store?

    Hi, I'm fighting to open same mine, making a new software update

  • Need help with the button mute on my helmet XL-3000 of Microsoft Chat, please!

    Hi all!  Hope everyone is having a good TGIF!  If you use my helmet even, I need help understanding the region button mute in the middle of the rope.  The red light is on or off?  I suppose that if I hit the curve button with the microphone on this subject, and the red light, I'm turn off my mike?

    I did some tests with others on the phone calls.  Sometimes, some other hear me, sometimes they do not have.  BUT I NEVER HEAR THEM!  FOR MY WORK, IT IS IMPERATIVE THAT I MAKE CALLS TO OTHERS!  HELP PLZ!  Thank you very much and have a great wkend!

    Hello
     
    Please follow the links below to troubleshoot the computer.
     
    Method 1
     
    Connect one microphone, music player or other audio device to your computer

    Method 2

    Step 1

    Troubleshooting: headsets

    Step 2

    Open the troubleshooting of Audio recording

    Method 3

    How to adjust the microphone volume

    a. click Start, type mmsys.cpl in the search box and press ENTER.
    b.
    in the sound dialog box, click the recording tab.
    c. click Microphone, and then click Properties.
    Note Make sure that the work appears under Microphone. If the job does not appear, click Microphone, and then click on set as default.
    d. the Microphone Properties dialog box, click the custom tab.
    e. select or clear the box amp Microphone.
    f. click the levels tab.
    g. set the volume to the desired level, and then click OK.
    h. click OK to close the sound dialog box.
     
    How to adjust the setting of the voice
     
    a. start the game.
    b. connect to LIVE (the Guide).
    c. click personal settings.
    d. click on voice.
    e. make sure that the recording volume level indicator records at a bar when you talk.
    f. click done.

    If you are still facing problems then, I would say that you contact support for Microsoft hardware for more direct intervention.


    I hope this helps.

     

Maybe you are looking for