Display many to many relationship in continuous form

后端 未结 5 1691
情书的邮戳
情书的邮戳 2020-12-11 22:55

I can\'t figure out how to display a column that has many value for the same record in a continuous form

I got 3 tables

SalesCall
SalesCallId | etc..         


        
5条回答
  •  Happy的楠姐
    2020-12-11 23:52

    I strongly disagree with "Those thinking in terms of junction tables are in fact thinking the wrong way." in @Albert D. Kallal's answer.

    It is true that m:n relationships can't be implemented directly in a relational DB. That is why the one and only sane design of:

    +----------+           +---------+
    | Patients |--- m:n ---| Doctors |
    +----------+           +---------+ 
    

    ... is:

    +----------+           +-----------------+           +---------+
    | Patients |--- 1:n ---| PatientsDoctors |--- n:1 ---| Doctors |
    +----------+           +-----------------+           +---------+
    

    Everything else might work in one way or another but is poor man's relational DB design. And with making compromises at the model design, at the very beginning of a project, the worse is very likely yet to come.

提交回复
热议问题