[quote
MAIN
entry_id (primary key, auto numbering)
person_id (foregin key to the PERSON TABLE)
ConactFullName
ContactPhone
ContactEmail
PERSON
person_id (primary key, auto numbering)
username
password
[/code]
You're already establishing a relationship between MAIN and PERSON by linking the two up with person_id i.e. in your database tables above, persion_id is primary key in PERSON and a foriegn key in MAIN. As a result, the two tables are related via person_id. A possible query as a result of that relation is:
SELECT username, ContactEmail FROM MAIN, PERSON WHERE MAIN.person_id=PERSON.person_id
May the expects here can correct me
