Basics of RDBMS
Basics of RDBMS
Answer:
An RDBMS is a type of database management system that stores data in a structured
format using rows and columns. Each table in an RDBMS represents a relation, and
relationships between tables are established using keys such as primary and foreign keys.
RDBMSs support SQL (Structured Query Language) for querying and managing data.
Answer:
A primary key is a set of one or more attributes that can uniquely identify each tuple
(row) in a relation (table). For example, in a Student table, Student_ID can be a primary
key because each student has a unique ID.
Answer:
A foreign key is an attribute in one table that links to the primary key of another table,
establishing a relationship between the two tables. For instance, in an Employee table,
Manager_ID can be a foreign key referencing Employee_ID in the same table, indicating
the manager of each employee.
Answer:
A tuple is a single row in a table, representing a single record in a relation. Each tuple
contains a set of attribute values corresponding to the columns of the table.
Answer:
Answer:
A data dictionary is a repository that stores metadata, which is data about the data. It
includes information about the structure of the database, such as tables, columns, data
types, and constraints, helping in database management and ensuring data integrity.
7. Explain the concept of 'domain' in a relational database.
Answer:
A domain defines the permissible values that an attribute can take. It specifies the data
type, format, and constraints for the attribute, ensuring that only valid data is entered
into the database.
Answer:
Data redundancy refers to the unnecessary repetition of data within a database. It can
lead to inconsistencies and inefficiencies. RDBMSs aim to minimize data redundancy by
organizing data into related tables and using keys to link them.
Answer:
The selection operation (denoted by σ) is used to retrieve rows from a relation that
satisfy a specified condition. It filters the tuples based on the given criteria. For example,
σ(Age > 25)(Employee) retrieves all employees older than 25 years.
Answer:
The projection operation (denoted by π) is used to retrieve specific columns from a
relation, effectively creating a subset of the original relation. For example,
π(Employee_Name, Salary)(Employee) retrieves only the names and salaries of
employees.