Question 3
Question 3
example:
a. Field
b. Record
c. File
Answer:-
a. Field
• Definition: A field is a single unit of data or a specific attribute within a
record. It represents a column in a database or table.
• Example:
In a table containing information about employees, the fields might be:
o Employee ID
o Name
o Age
o Department
b. Record
• Definition: A record is a collection of related fields that together
represent a single entity or object. Each record contains data across
multiple fields.
• Example:
For the employee data table mentioned earlier, a record might look like:
5
Employee ID Name Age Department
1001 John Smith 25 Marketing
• This record combines all the fields (Employee ID, Name, Age,
Department) for a specific employee (John Smith).
c. File
• Definition: A file is a collection of records. It could be a database file, a
text file, or any other form of storage that holds related records for
efficient retrieval and processing.
• Example:
If you have multiple employee records, they might all be stored in a file
called "EmployeeRecords.txt" or a database file like
"EmployeeDB.db". This file contains all the individual records of
employees.
6
Question 4: - What is a data dictionary? Discuss its
features and types.
Answer: - Data Dictionary
A data dictionary is a centralized repository or system that contains detailed
information about the data used in a database or information system. It defines
the structure, meaning, and relationships of the data elements, ensuring that all
users and systems have a consistent understanding of the data.
It serves as a reference tool for both developers and end-users to understand the
attributes of the data, such as field names, data types, and permissible values .
7
Types of Data Dictionaries:
1. Active Data Dictionary:
o Definition: An active data dictionary is dynamically integrated
with the database management system (DBMS). It is updated
automatically as changes are made to the database structure, such
as adding or modifying tables, fields, or constraints.
o Features:
▪ Automatically updates when changes are made to the
database schema.
▪ Plays an active role in enforcing data integrity and structure.
▪ Typically, used in modern relational database systems.
o Example: In a database, if a new table or column is added, the
active data dictionary will update its contents automatically.
2. Passive Data Dictionary:
o Definition: A passive data dictionary is a separate, standalone
document or system that is manually updated whenever changes
are made to the database schema. It doesn't interact directly with
the DBMS but serves as a reference tool.
o Features:
▪ Must be manually updated whenever there are changes to the
database.
▪ Often stored as a separate document or text file.
▪ Used more for documentation and reference purposes.
o Example: A document listing tables, fields, and descriptions of a
system that developers maintain manually.
3. Hybrid Data Dictionary:
o Definition: A hybrid data dictionary is a combination of both
active and passive dictionaries. It has the capability to
automatically track changes, but it also includes manual inputs for
detailed descriptions and metadata.
o Features:
▪ Automatically updates certain aspects (e.g., table structure),
but also allows manual input for descriptions and metadata.
▪ Offers a balance between automation and documentation.
o Example: A system where database schemas are automatically
tracked, but detailed descriptions and notes are manually added for
clarity.