Yes, this is a good table and primary key (I could call it an “associative” table, but I would not call it a “lookup” table).
Some people (not me) will insist that the jokecategoryid surrogate key column be the primary key; if you do this, you still need to restrict UNIQUE (jokeid, categoryid) to enforce the business rule.
source
share