[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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