Examveda

What is the role of a foreign key in a relational database?

A. To prevent unauthorized access

B. To ensure data integrity and relationships

C. To index the database table

D. To encrypt data

Answer: Option B

Solution (By Examveda Team)

A foreign key is used to establish relationships between tables, ensuring data integrity and referential integrity.

Join The Discussion

Related Questions on Database Connectivity with Python

What is SQLite?

A. A type of programming language

B. A relational database management system

C. A Python module for web scraping

D. A version control system