Generaiting first and last names using DBMS_RANDOM.

Hello, I need to generate 1000 lines in the usind DBMS_RANDOM table to generate the first names of family. There are ID first_name and last_name columns column!
How can I do?

I use 11g 2

THX

Published by: 905194 on January 9, 2012 03:28

Please change person_id column

ALTER TABLE PERSONS MODIFY PERSON_ID number(10);

Tags: Database

Similar Questions

  • I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change

    I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change this? I tried to edit my profile however my first and last name are not editable fields.

    Hello Laurag92400722,

    You connect with Adobe ID account E-Sign? If Yes, then you can directly connect to your Adobe ID account and can update the name as the name of the company and it will reflect in your E-Sign account as well.

    -Usman

  • InDesign - prevent breaks between the first and last names in a very long list of names?

    Is there a quick way to do?  Having the list 800 names in a text box and want to prevent the first & last names being split at the end of the line.  Other than choosing each name and apply the rule "no break" (a lot of time).  Any other suggestions?

    This is a more elegant solution:

    (?<=[\l\u]) (?="">

    Apply style: no pause

    It detects all single space between two letters

  • Display the first and last name of userdetails welcome message

    Hi I am a newbie to php in dreamweaver CS5 and I did many tutorials with David Gassner and tutorials seen with David Powers.So my works perfectly login page it takes my my login page, but I want to display the full name of the users on the page, but I can't make it work I even bought a tutorial of SDS tutorials on this subject , but not working, can anyone help.

    If (! isset {})

    session_start();

    }

    It's my recordset.

    $colname_getUserDetails = "-1";

    If (isset($_SESSION['MM_userName'])) {}

    $colname_getUserDetails = $_SESSION ['MM_userName"];

    }

    @mysql_select_db ($database_datexdatabase, $datexdatabase);

    $query_getUserDetails = sprintf ("SELECT firstName, lastName FROM users WHERE userName = %s", GetSQLValueString ($colname_getUserDetails, "text") ");

    $getUserDetails = mysql_query ($query_getUserDetails, $datexdatabase) or die (mysql_error ());

    $row_getUserDetails = mysql_fetch_assoc ($getUserDetails);

    $totalRows_getUserDetails = mysql_num_rows ($getUserDetails);

    not sure of the echo

    concerning

    Stephen

    Access.php page, change-

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    on this subject.

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    ECHO '.

    "; Exit(print_r($row_rsUserDetails)) ;

    Enregistrer et télécharger. Ensuite, allez à la page de connexion et se connecter.  Que voyez-vous sur la page d’accès ?

  • SEPARATE THE FIRST NAME AND LAST NAME

    How to separate the first and last name? the first name is always first.

    With the help of 10g,.
    select (Tim Tebow) from dual

    Not an easy task.

    Sir Nicholas Mimsy Porpington
    John Jacob Jingleheimer Schmidt
    Dear

  • I want that my address book to view all entries by first or last name and have filled all the information accordingly.

    Original title: address book

    I want that my address book to view all entries by first or last name and have filled all the information accordingly. However, I have a mixture of the first name and the name of the list alphabetically when I scroll down tom insert name in an e-mail message. My list of contracts is organized by all the names first. How can I sync the address book to match the list of contacts?

    Hi tgblueblade,

    1. what email program are you using?

    2 are. what device or software you using Sync?

    If you use Windows contacts, then this isn't the ability to synchronize the list of Windows contacts to be identical to the list of e-mail contacts.

    Manage your contacts

    http://Windows.Microsoft.com/en-us/Windows-Vista/managing-your-contacts

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Changed the display pad and how can I change this back to the first and last frame of the clip in question?

    Hi, when you cut a clip using the standard cursor (not the adjustment tool but just the mouse), the behavior that I was accustomed to is it shows the first and last frame of the clip you're carved, in a 2 - up window. Now in the updated 2015 I'm confused because it's still place 2 window, but instead I see the head or tail of any clip is next to any side of the clip, I'm trying to cut. I can see the utility in this, but I would like to know where I can go to the screen more as I'm used to it...

    Thank you!

    Click on the key in the timeline and in the drop-down the menu uncheck Composite overview over the filling.

    MtD

  • First and last &amp; functions

    Hello

    Can someone give me a brief description of the functions of first and last in sql. If you can explain with an example... It is very useful.

    Concerning
    AR

    Hello

    Check this box... Hope this will help you

    First and Last:
    ***********
    
    The FIRST and LAST functions can be used to return the first or last value from an ordered sequence. Say we want to display the salary of each employee, along with the lowest and highest within their department we may use something like:
    
    SELECT deptno,
           ename,
           sal,
           MIN(sal) KEEP (DENSE_RANK FIRST ORDER BY sal) OVER (PARTITION BY deptno) "Lowest",
           MAX(sal) KEEP (DENSE_RANK LAST ORDER BY sal) OVER (PARTITION BY deptno) "Highest"
    FROM   emp
    ORDER BY deptno, sal;
    
        DEPTNO ENAME             SAL     Lowest    Highest
    ---------- ---------- ---------- ---------- ----------
            10 MILLER           1300       1300       5000
            10 CLARK            2450       1300       5000
            10 KING             5000       1300       5000
            20 SMITH             800        800       3000
            20 ADAMS            1100        800       3000
            20 JONES            2975        800       3000
            20 SCOTT            3000        800       3000
            20 FORD             3000        800       3000
            30 JAMES             950        950       2850
            30 WARD             1250        950       2850
            30 MARTIN           1250        950       2850
            30 TURNER           1500        950       2850
            30 ALLEN            1600        950       2850
            30 BLAKE            2850        950       2850
    

    KPR

  • Can only see the first and last frame of the item in the editing HELP PLEASE

    Hi, my first time and I find an answer, but fails. I first elements 4 and I'm trying to worm. 9. in version 4 clips in the timelin shows all the frames, but in ver 9 it only shows the first and last frame clips. Is it possible to make all the images to display. I mean by "all frames", clips from filling with frames. I wanted to see all of the images in the scenario, it is easier for me to select and cut the pieces on.

    My features are Core 2 Duo 6750, Nvidia 8600GTS, 4 G of Ram and Vista Home Premium. 3 HARD DRIVE 3 TB.

    Thank you for having responded

    Werner

    Werner,

    Welcome to the forum.

    In the header of the video track, there is an icon for Clip thumbnail display. It's a cycle, and you can scroll through the Modes to display the first frame, first & last, all, or none (name of file only). In pre 4.0, it's on the far left in the header of the track. I guess that's about the same place in pre 9.0.

    Good luck and hope that helps.

    Hunt

  • Impossible to print the first and last pages of a pdf of the 8 page?

    I have a pdf of 8 pages exported from an InDesign document. I can print it without any problem on my MAC, but when I will forward it to a partner, she is unable to print the first and last pages. Any ideas?

    Hi jimr67163466,

    Could you please let us know the version of Adobe Reader is installed on the machine?

    What operating system is installed on the machine-Windows/Mac?

    The pdf is printing via a network printer?

    This phenomenon happens with a specific document only or with other documents as well?

    Try to print the pdf as image, launch Adobe Reader, click Print > select your printer from the drop-down > click on advanced > check the print as Image > and then click OK.

    Let us know if it worked.

    Thank you

    Shivam

  • Detect the first and last spark of list items

    Hello

    I have a converter item personalized with a background image for each item in a list. the thing is I'm trying to have a different background for the first and last elements (curved respectively) and I don't know how to do this.

    Any help will be appreciated.

    not sure it's the best solution, but:

    You can override the method to data defined in your itemRenderer. Compare the new data for the first and last items in your list. And you set the background depending on the result.

  • Need a query to return the first and last date for a rowset.

    Hello

    I have a query which can be simplified to the following data, if
    Assume that it is my dataset, with THE_VALUE of
    Sign (Anum) therefore,-1, 0 or 1.

    * (Sorry for crushed registration. "I can't understand this website's rich text formatting.) *

    THE_VALUE THE_DATE THE_MEMBER
    1 0 1 January 2007
    1 0 1 February 2007
    1 0 1 March 2007
    1. 1 April 1, 2007
    1 1 1 May 2007
    1 0 1 June 2007
    1. 1 July 1, 2007
    1. 1 August 1, 2007
    1 0 01 - sep - 2007
    2 0 1 January 2007
    2 1 February 1, 2007
    2 0 1 March 2007
    2. 1 April 1, 2007
    2 1 1 May 2007
    2 0 1 June 2007
    -2 1 1 July 2007
    2. 1 August 1, 2007
    2. 1 01-sep-2007
    3 0 1 January 2007
    3. 1 February 1, 2007
    3 0 1 March 2007
    3 0 1 April 2007
    3. 1 May 1, 2007
    3 0 1 June 2007
    3. 1 July 1, 2007
    3. 1 August 1, 2007
    3 0 01 - sep - 2007

    I need to get the lines with the THE_MEMBER, the values of the first and the last
    THE_DATE, where the value is - 1, and the date range is the last
    set of lines to the Member, with the same value of THE_VALUE.

    I tried the following to get the dates of first and last for a set
    consecutive months with the same value for the Member.

    SELECT the_member
    the_value
    the_date
    first_value (the_date)
    in the first_date (PARTITION the_member, ORDER BY the_member the_value, the_date)
    last_value (the_date)
    during the last_date (PARTITION the_member, ORDER BY the_member the_value, the_date)
    OF togola
    ORDER BY the_member
    the_date;

    At first, it seems to work, but then, when the return value
    an old value, FIRST_DATE will be the first of all the lines containing
    This value for the Member rather than the first of consecutive
    rows with this value for the Member. Apparently the partitioning
    occurs before the order.

    THE_MEMBER THE_VALUE THE_DATE FIRST DATE LAST DATE
    1 0 January 1, 2007 January 1, 2007 January 1, 2007
    1 0 1 February 2007 1 January 2007 1 February 2007
    1 0 1 March 2007 1 January 2007 March 1, 2007
    1. 1 April 1, 2007 April 1, 2007 April 1, 2007
    1. 1 May 1, 2007 April 1, 2007 may 1, 2007
    1-0 June 1, 2007 January 1, 2007 June 1, 2007
    1. 1 July 1, 2007 April 1, 2007 July 1, 2007
    1. 1 August 1, 2007 April 1, 2007 August 1, 2007
    1 0 01 - sep - 2007 1 January 2007 01-Sep-2007

    2 0 January 1, 2007 January 1, 2007 January 1, 2007
    2 1 1 February 2007 February 1, 2007 February 1, 2007
    2 0 1 March 2007 1 January 2007 March 1, 2007
    2. 1 April 1, 2007 February 1, 2007 April 1, 2007
    2 1 1 May 2007 February 1, 2007 may 1, 2007
    2-0 June 1, 2007 January 1, 2007 June 1, 2007
    -2 1 1 July 2007 February 1, 2007 July 1, 2007
    2. 1 August 1, 2007 February 1, 2007 August 1, 2007
    2. 1 01-sep-2007 1 February 2007 01-Sep-2007

    3 0 January 1, 2007 January 1, 2007 January 1, 2007
    3. 1 February 1, 2007 February 1, 2007 February 1, 2007
    3 0 1 March 2007 1 January 2007 March 1, 2007
    3 0 April 1, 2007 January 1, 2007 April 1, 2007
    3. 1 May 1, 2007 February 1, 2007 may 1, 2007
    3 0 June 1, 2007 January 1, 2007 June 1, 2007
    3. 1 July 1, 2007 February 1, 2007 July 1, 2007
    3. 1 August 1, 2007 February 1, 2007 August 1, 2007
    3 0 01 - sep - 2007 1 January 2007 01-Sep-2007

    That's what I need to get in the end.

    THE_MEMBER FIRST DAY DATE OF LAST
    July 2 1 2007-01 - Sep - 2007

    Any ideas would be really appreciated.

    Published by: user10700981 on December 17, 2008 13:57

    Hello

    We'll call the lines whose the_value =-1 'good' lines and lines with the_value! =-1 ranks of 'bad '.

    For each value of the_value, we need the first and last values of the_date where
    the last row in the group is good
    (b) the current line is good
    (c) there is a lot of lines from the current line to the end of the Group
    Condition (a) is just a special case of (c).
    Conditions (b) and (c) are similar: (b) if applied to the current line, (c) applies to all lines after him. They can easily be combined into a single test that counts the number of lines after the current line or bad.

    Which produces the results you requested of the sample data that you provided:

    WITH     count_bad     AS
    (
         SELECT     the_member
         ,     the_date
         ,     COUNT     ( CASE
                        WHEN  the_value != -1 -- assuming the_value is never NULL
                        THEN  1
                     END
                   ) OVER     ( PARTITION BY     the_member
                          ORDER BY     the_date     DESC
                        )     AS bad_cnt
         FROM     table_x
    )
    SELECT     the_member
    ,     MIN (the_date)     AS first_date
    ,     MAX (the_date)     AS last_date
    FROM     count_bad
    WHERE     bad_cnt     = 0
    GROUP BY     the_member
    ORDER BY     the_member;
    
  • Extract the first name and last names of a string

    Hello people,
    I am trying to extract the last name, first name, first name and initial of some names of students for a report. I have some success with the first name and the first names, but have some difficulty to come with the other two. I use Oracle 9i and would like to come with the SQL.

    Script to create the table:
    create table grad_student_tb
    (student_id varchar2(3) primary key,
     salutation varchar2(4),
     student_name   varchar2(60));
    Script to insert records into the table:
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('001','Mr','Adams,Robert Murphy');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('002','Mr','Green,Eric Craig');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('003','Miss','Brown,Jennifer William H');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('004','Mr','Adams,Michael William H');
    Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('005','Miss','White,Snow');
    Here's what I would like on my report:
    Student ID   First Middle Name    Last Name   First Name   Initial
    ==================================================================
    001          Robert Murphy        Adams       Robert       M
    002          Eric Craig           Green       Eric         C
    003          Jennifer William H   Brown       Jennifer     W
    004          Michael William H    Adams       Michael      W
    005          Snow                 White       Snow
    Currently my SQL looks like this:
    select student_id,
           SUBSTR(student_name, INSTR(student_name,',')+1, LENGTH(student_name)) first_middle_name,
           SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name
    from   grad_student_tb;
    Output:
    STUDENT_ID FIRST_MIDDLE_NAME                                            LAST_NAME                                                    
    ---------- ------------------------------------------------------------ ------------------------------------------------------------ 
    001        Robert Murphy                                                Adams                                                        
    002        Eric Craig                                                   Green                                                        
    003        Jennifer William H                                           Brown                                                        
    I need to come up with the first name and initial of the students.

    Any help is greatly appreciated!

    Thank you

    Published by: Roxyrollers on August 18, 2011 12:53

    Assuming that each name is exactly the same format

    SQL> ed
    Wrote file afiedt.buf
    
      1  select student_id,
      2         SUBSTR(student_name,
      3                INSTR(student_name,',')+1,
      4                LENGTH(student_name)-INSTR(student_name,' ')) first_name,
      5         SUBSTR(student_name,
      6                INSTR(student_name,' ')+1) middle_name,
      7         SUBSTR(student_name,
      8                INSTR(student_name,' ')+1,
      9                1) middle_initial,
     10         SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name
     11* from   grad_student_tb
    SQL> /
    
    STU FIRST_NAME      MIDDLE_NAME          MIDDL LAST_NAME
    --- --------------- -------------------- ----- ---------------
    001 Robert          Murphy               M     Adams
    002 Eric            Craig                C     Green
    003 Jennifer        William H            W     Brown
    

    In general, of course, analysis names as it is much more complicated because you have to deal with the family as "la Hoya" names that contain spaces and cannot easily be distinguished from someone with several names.

    Justin

  • 10.10.5 running on macbook pro. I want my email when received on the receiver side to read with my first initial, followed by my first name, and last name. But it always appears as name the middle initial, then last name.

    I want my email, as it appears to the recipient to read: my first initial, followed by my middle name, then my family name. But no matter what I try,

    It always appears as name the middle initial, then last name. any suggestions?

    Not knowing what you have already tried

    -Preferences - accounts - e-mail did change the name of the account alias help?

  • How to select lines if a column has the same first and last characters?

    Hello

    I have a scenario that one of the columns in the table of the student is having names student, (Ex) John, Mary, Donald, Ana, Maria. In this case how can we write a query to retrieve lines for the values if the first and the last character of the student of identical names? Production is expected to be Donald, Ana.

    Frank answers the question in the subject of your post, but looking at your examples, I think you wanted

    WHERE lower (SUBSTR (student_name, 1, 1)) - 1 character

    low = (SUBSTR (student_name,-1)) - last character

Maybe you are looking for