Which of the following type of key applied on referential integrity
Correct answer: B. Foreign key
- A. Primary key
- B. Foreign key
- C. Secondary key
- D. Candidate key
Explanation
Referential integrity is a concept in relational databases that ensures the consistency and accuracy of data between linked tables. A foreign key is a column (or set of columns) in one table that references the primary key (or unique key) of another table. It creates a link between the two tables, ensuring that the data in the child table (the table with the foreign key) corresponds to valid data in the parent table (the table with the primary or unique key). This helps to prevent orphaned records, which are records in the child table that reference non-existent records in the parent table.
Report an error
The more specific you are, the faster it gets fixed. A source beats an opinion.
Prefer email? [email protected]
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 85 papers prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for every one of them.
More Databases questions
Multivalued dependencies should be eliminated in relations
Functional dependencies are a generalization of
When there is a composite key and only one part of the primary key is needed to determine one or more other attributes of a table, what is called?
In which normal form, partial dependency needs to be removed?
The TNF describes the tabular format in which
Which anomaly occurs when a record is updated in the relation?