RDBMS stands for Relational Database Management System.
A database is a structured collection of data organized for efficient retrieval, storage, and management. It is designed to hold large amounts of information in a way that is easily accessible, scalable, and can be efficiently queried and updated.
A Relational Database Management System (RDBMS) is a type of database management system that organizes data into tables, which can be related to each other based on common fields. RDBMS is a widely used model for managing and manipulating structured data.
Data is organized into tables, which consist of rows and columns.
Each table represents a specific entity, and each row in the table represents an instance of that entity, while columns represent attributes or properties.
RDBMS enforces data integrity through constraints like primary keys, foreign keys, and unique constraints.
Primary keys uniquely identify each record, and foreign keys establish relationships between tables.
RDBMS follows normalization principles to minimize data redundancy and dependency.
Data is organized into different normal forms (e.g., 1NF, 2NF, 3NF) to eliminate duplication and improve efficiency.
SQL is the standard language for interacting with RDBMS.
SQL allows users to define, query, and manipulate data. Common SQL commands include SELECT, INSERT, UPDATE, DELETE, and more.
RDBMS transactions adhere to the ACID properties:
The RDBMS database uses tables to store data. A table is a fundamental structure used to store and organize data. It is a two-dimensional arrangement of rows and columns, where each row represents a record or a tuple, and each column represents a specific attribute or field.
ID | Name | SKILL | COURSE |
1 | Rohit | PHP | B.Tech |
2 | Altaf | JAVASCRIPT | BCA |
3 | Wasif | REACT | MCA |
4 | Rajesh | LARAVEL | M.Tech |
A row represents a single record or tuple within a table. It contains a collection of related data points, each corresponding to a specific attribute or field defined by the table's schema. Rows are horizontal entities, and each row in a table typically has a unique identifier known as the primary key, ensuring individuality, and facilitating efficient retrieval and manipulation of data.
Properties:
Name | SKILL | COURSE | |
1 | Rohit | PHP | B.Tech |
A "column" refers to a vertical segment within a table that represents a specific attribute or field. Columns define the structure of the data stored in a table and organize it into a two-dimensional matrix of rows and columns.
Property:
Name |
Rohit |
Altaf |
Wasif |
Rajesh |
A "cell" refers to the intersection of a specific row and column, representing a single data value within the table. Cell contains the actual data associated with a particular attribute or field for a specific tuple.
Property:
ID | Name | SKILL | COURSE |
1 | Wasif | JavaScript | B.Tech |
Cardinality is the relationships between tables. It describes the number of instances of one entity (table) that can be associated with another entity through a relationship.
Some common cardinalities are:
One-to-One (1:1): In a one-to-one relationship, each record in the first table is associated with at most one record in the second table, and vice versa.
One-to-Many (1:N): In a one-to-many relationship, each record in the first table can be associated with multiple records in the second table, but each record in the second table is associated with at most one record in the first table. This is the most common type of relationship.
Many-to-One (N:1): This is essentially the reverse of a one-to-many relationship. Many records in the first table can be associated with one record in the second table. This type of relationship is less common but still important, particularly when modelling situations where many entities are related to a single entity.
Many-to-Many (N:N): In a many-to-many relationship, each record in the first table can be associated with multiple records in the second table, and vice versa. This often requires the use of an intermediary table (junction or linking table) to store the relationships.
The domain defines the set of possible values that an attribute (or column) can contain. This definition includes specifying the standard data types, such as integers, floating-point numbers, strings, dates, and other data types, that are allowed for the attribute.
A "null value" represents the absence of a value in a particular data field (column) for a specific record (row). It does not mean that the field has a zero or empty value; rather, it signifies that no data or unknown data is present for that attribute in the given record.