×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need help with a little database logic...

Need help with a little database logic...

Need help with a little database logic...

(OP)
I just had a db droppped in my lap and I need to make modifications to it.  This db basically tracks addresses that had a certificate issued.  This certificate is only good for a year but unfortunately there was no thought put in for records that were to be renewed!

The address table has a 1 to many relationship to the application table and the owner and clean tables have a 1 to 1 relationship to the application table.  When a application is renewed all the owner and clean information is just duplicated and a new record (in each of their tables) is added.  This is very inefficient!  I can fix this but (finally) my question is what is the best way to track renewed applications.  I waas thinking of adding a new table tblRenewal and relating it (1 to 1) with the tblApp but I run into the problem of associating the tblOwner and tblClean records the the tblRenewal.

Confused yet?!  I know I am!!!!

Here is the db structure:

tblAddress    tblApp       tblOwner           tblClean
AddID             AppID         OwnID                 CleanName
StNo               AppDate     OwnAddress         CleanPhone
Street             AddID         OwnPhone           AppID   
Suffix                                AppID       

RE: Need help with a little database logic...

Yeah, I'm confuzzled....... but that's nothing new.
Do the following structures help your thoughts ?
 
tblApp
Appid
AppDate
Addid
Ownid
Cleanid
Renewid

tblOwner
Ownid
OwnAddress
OwnPhone

tblClean
Cleanid
CleanPhone

tblAddress
Addid
Cleanname
StNo
Street
Suffix

tblrenewal
renewid
etc as required


Pete Bloomfield
Down Under

RE: Need help with a little database logic...

(OP)
ahhh,

That was simple. Thanks!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close