updating a table using other table values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hgriva
    New Member
    • Aug 2006
    • 8

    updating a table using other table values

    Hi,
    i have a question
    -------------------------------------
    i have 2 tables
    user_security and customer


    table structures
    -----------------------------
    user_security
    ---------------------
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    LOGON_ID NOT NULL VARCHAR2(12)
    LAST_NAME VARCHAR2(30)

    the last name column has been added recently.


    sample records
    -------------------------
    logon_id last_name
    ----------------------------------------------------
    k1
    q1
    q2
    q3
    q4


    customer
    ---------------

    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    LAST_NAME VARCHAR2(30)

    sample records
    -----------------------
    LAST_NAME
    ---------------------
    www
    wxy
    zzz
    ....
    ..
    ...
    ...
    scenario
    ---------------
    i have to update the user_security table with values of last_name from customer table only for users whose logon_id starts with 'q'

    Any help would be welcomed.
  • aijazdba
    New Member
    • Aug 2006
    • 2

    #2
    Which corresponding value of customer table to you want to be taken for update ?

    Comment

    Working...