Multiple choice technology databases

A sequence generates values that are often used for (choose all that apply):

  1. primary keys

  2. sales figures

  3. foreign keys

  4. unique keys

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

Database sequences generate unique numeric values often used for primary keys and unique keys to provide automatically incrementing identifiers. Sequences are not typically used for sales figures (which are data values, not identifiers) or foreign keys (which reference existing primary keys). The generated values ensure uniqueness across rows.