• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

Do I need to create a 2-column key in a manyTomay table?

This manyTomany table has tableAid and tableBid.  Should I or do I need to make a PK out of these 2 columns?  Thank you.
0
lapucca
Asked:
lapucca
1 Solution
 
bitrefCommented:
You should, so that you guarantee a unique combination of both keys.
0
 
lapuccaAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now