In a relational database, a primary key is a field that:
Correct answer: B. Uniquely identifies each record in a table
- A. Stores the largest value in the table
- B. Uniquely identifies each record in a table
- C. Links two databases together
- D. Encrypts the contents of a table
Explanation
A primary key uniquely identifies every record in a table and cannot contain duplicate or null values. A foreign key, by contrast, is a field that references the primary key of another table to establish a relationship.
Report an error
The more specific you are, the faster it gets fixed. A source beats an opinion.
Prefer email? support@testustad.com
About Databases
Databases cover tables, records, fields, keys and relationships, together with database management systems and relational database design. The subject includes primary and foreign keys, normalization, SQL commands such as SELECT, INSERT, UPDATE and DELETE, queries, forms and reports, while distinguishing a database from a spreadsheet used for simple tabular data.
Practise Databases
210 free Databases MCQs from Computer Science and IT, each with the correct answer and an explanation. Unlimited attempts, no account needed.
Discussion
Stuck on an option, or know a faster way to get there? Ask or explain it here.
No comments yet. Be the first to explain this one.
Exams that ask Computer Science and IT questions like this
Computer Science and IT is on 81 papers prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for every one of them.