Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modelize tables with 2 types of Users

Status
Not open for further replies.

niqola

IS-IT--Management
Jul 3, 2003
7
0
0
DE
Hi,
I don’t know how to deal with some data and tables.
I have 2 types of users:
The users for whom I have information in another database and I must retrieve the data.
The users for whom I have no information in the other database and I must enter the data
I thought about this model:

My DB:

Tbl_all_Users (
User_id (PK))

Tbl_Users_not_in_the_other_db(
User_id (FK),
Name,
Adresse)

The Other DB:

Tbl_Users_in_the_other_db(
User_id (PK),
Name,
Adresse)

The relations:

Tbl_all_Users (1)---------------------------------------------------> (0 or 1) Tbl_Users_not_in_the_other_db
And the table Tbl_Users_in_the_other_db is imported from the other db


What do you think about?
Thx.
 
why not just check if the user exists in the other table and if not create them?

Leslie
landrews@metrocourt.state.nm.us

There are 10 types of people in the world -
those who understand binary
and
those who don't!
 
Thx leslie. But I can't modify the data in the other database, just retrieve them.
 
Then maybe you should set it up so that if nothing is returned from the other database, then see if they exist in your database and if not then add them to your database. That way you only have two tables, theirs which you can't modify and yours that you can.

HTH

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top