reading-notes

# DataBase

schema is a logical blueprint or structure that defines the organization, design, and relationship between different tables and entities in a database. It represents the overall framework of the database, including tables, columns, data types, constraints, and relationships.

Primary Key: It is a unique identifier for a record in a table. It uniquely identifies each row in the table and ensures data integrity. There can be only one primary key per table.

Foreign Key: It is a field in a table that refers to the primary key of another table. It establishes a relationship between two tables by enforcing referential integrity. Foreign keys help maintain data consistency and enable the implementation of various types of relationships between tables.

Composite Key: It is a key that consists of multiple columns in a table. The combination of these columns must be unique to identify a record. Composite keys are useful when a single column cannot uniquely identify a record, but the combination of multiple columns can.

depends on the specific requirements of the database design and the relationships between tables.

Many:Many relationship, also known as a many-to-many relationship, is a relationship where each record in one table can be associated with multiple records in another table, and vice versa. It means that multiple records from one table can be related to multiple records in another table. To implement a many-to-many relationship, a join table is typically used, which contains the primary keys from both tables.

## Things I want to know more about

diving deeper into databases in C# programming

Home