DDD Flashcards

1
Q

How does a compound key work

A

Let say you and another person bought an item from a business and lets say that it had a generator generating different number/letter codes for the customerID and PurchaseID

and you both had the same customerID but not the same PurchaseID
you would need to join the customerID and PurchaseID up to make it unique

this is called the formation of a compound key yung bruddah.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the things to know about a compound key?

A
  • A compound key can be made out of multiple (meaning more than 2) primary keys
  • attributes that are used to make up a compound key is a primary key in its own right
  • Compound key is known as 2 or more attributes used to identify a record in a table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly