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