I had a similar Problem. I have a collection of Video tapes: Movies, Star Trek episodes and so on:

There are, relevant for your problem, the tables:

PERSONS, PERSON_TITLE, TITLES, CONTRIBUTORS

Sometimes you have persons as actors in one episode and as director in another.

Examples:

PERSONS
+------+------------+---------------+
| prNR | prLASTNAME | prNAME |
+------+------------+---------------+
| 76 | McNeill | Robert Duncan |
+------+------------+---------------+

PERSON_TITLE

+-------+------+------+------+
| PT_NR | prNR | ttNR | cnNR |
+-------+------+------+------+
| 542 | 76 | 242 | 2 |
+-------+------+------+------+

cnNR stands for the number in CONTRIBUTORS.

This table looks as follows:
+------+-----------------+
| cnNR | cnFUNCTIONALITY |
+------+-----------------+
| 1 | Actor |
| 2 | Director |

Table Titles

+------+----------------------+------+
| ttNR | ttTITLE | dtNR |
+------+----------------------+------+
| 242 | Voyager - Das Ritual | 30 |
+------+----------------------+------+
(dtNR gives just the number of the Datacarrier and doesn't
bother here).

In this episode Duncan McNeill is actor and direktor as well.

So you can guess how the PERSON_TITLE set might change:

+-------+------+------+------+
| PT_NR | prNR | ttNR | cnNR |
+-------+------+------+------+
| 527 | 76 | 242 | 1 |
+-------+------+------+------+

Your solution: you only need a further Field in your actors_role table.

I hope this was a bit helpful. Sorry, having watched Star Trek in Germany, I have only the German episode names.


In reply to Re: Normalisation Question (OT but trust me, perl implementation) by Bagration
in thread Normalisation Question (OT but trust me, perl implementation) by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.