data from linked tables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sid

    #1

    data from linked tables

    I have 2 tables:

    names (id, firstname, lastname)
    addresses (id, ownerid, ownerlastname, address)

    I'd like the owner_lastname field in the addresses table to be
    automatically filled in from the lastname field in the names table
    based on whatever is manually entered in the ownerid field (obviously
    ownerid entries correspond to id entries in the names table).

    I know this doesn't sound like good design but the example is an
    oversimplificat ion-- I have a very good reason for having built-in
    redundancy-- believe me :-)

    thanks,

    Sid
Working...