Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   E-R Diagrams (https://www.askmehelpdesk.com/showthread.php?t=44075)

  • Nov 20, 2006, 10:21 PM
    anandpocham
    E-R Diagrams
    Hi,

    My Question 1 is, When we are trying to give a relation with Foreign key referencing only a part of the composite key, it is not accepting the relation. Is it possible?

    2. The Foreign key referencing the primary key of multiple tables referencing only one table at a time, is it possible?
  • Nov 21, 2006, 07:31 AM
    ScottGem
    First I am not a fan of composite keys. It just makes building relations that much harder. A PK should be a unique identifier used internally by the database. While I don't go so far as some to state the PK should be hidden from the user, it should have no relation to real data. By using such a PK you remove the problem of relations with composite keys.

    I don't understand the second question.

  • All times are GMT -7. The time now is 03:29 AM.