IDNLearn.com: Where your questions meet expert answers and community support. Find the information you need quickly and easily with our comprehensive and accurate Q&A platform.

In a relational database, what is the purpose of a constraint?
a) To define the structure and format of database tables
b) To enforce rules and ensure the integrity of data within the database
c) To create user interfaces for data entry
d) To generate reports and analytics based on the data