Describe primary and foreign keys. How do they differ? When and how they are needed?

What will be an ideal response?


A primary key is an attribute or a set of attributes whose values uniquely identify a row. The relationship between entities in different tables is established through foreign keys. The foreign key is an attribute in one table, the value of which must match the value of a primary or an alternate key in another table. Unlike primary keys, foreign keys are not required and do not, necessarily, identify a row uniquely. Like primary keys, a foreign key can be composite, consisting of more than one attribute.

Business

You might also like to view...

Which sentence is better expressed?

A) A durable inexpensive smartphone is being offered as a gift. B) A durable, inexpensive smartphone is being offered as a gift.

Business

Valley Spa purchased $8700 in plumbing components from Tubman Co. Valley Spa signed a 60-day, 14% promissory note for $8700. If the note is dishonored, but Tubman intends to continue collection efforts, what is the journal entry to record the dishonored note? (Use 360 days a year.)

A. Debit Accounts Receivable-Valley Spa $8700; credit Notes Receivable $8700. B. Debit Accounts Receivable-Valley Spa $8903, credit Interest Revenue $203; credit Notes Receivable $8700. C. Debit Bad Debt Expense $8903; credit Accounts Receivable $8903. D. Debit Accounts Receivable $8903; debit Bad Debt Expense $203; credit Notes Receivable $8700. E. Debit Bad Debt Expense $8700; credit Notes Receivable $8700.

Business

Administrative agencies are usually part of the legislative branch

a. True b. False Indicate whether the statement is true or false

Business

A company that sells multiple products will always set sales prices such that all products have the same contribution margin

Indicate whether the statement is true or false

Business