Database design: OR relation

Posted by Ant on Stack Overflow See other posts from Stack Overflow or by Ant
Published on 2010-05-24T06:27:02Z Indexed on 2010/05/24 6:31 UTC
Read the original article Hit count: 453

Filed under:
|

I have a database with a "users" table containing data about my users. Each user is to be linked to a company or a college. I wish to have two separate tables "college" and "company" each with a field "ID". So how do I link each record in the users table to either a company or a college?

The basic thing is that I wish to establish an "OR" relationship in the database.

© Stack Overflow or respective owner

Related posts about database

Related posts about database-design