Group Assignment DBMS
Group Assignment DBMS
VINODH
COURSE : BCA-DS
ROLL NO : 10
GROUP ASSIGNMENT :
• Self-describing nature of a database system: A database system contains not only the
database itself but also a complete definition or description of the database structure and
constraints (metadata).
• Insulation between programs and data: Known as data abstraction, this allows changes to
the data structure without affecting the application programs.
• Support for multiple views of data: Different users can view the same data in different
ways.
• Sharing of data and multiuser transaction processing: Allows multiple users to access
the database concurrently.
Purpose of DBMS:
• Data storage, retrieval, and update: Provides a systematic way to manage and manipulate
data.
• User-accessible catalog: Metadata storage for data definition and query processing.
• Conceptual Data Models: High-level data models that describe what data is stored and the
relationships among those data (e.g., ER models).
• Logical Data Models: Translate the conceptual model into a logical structure, which can
include relational models.
• Physical Data Models: Focus on how the data is stored physically on storage media.
• Instance: The actual data stored in the database at a particular moment in time.
ER Diagrams
ER Diagrams:
• Derived Attribute: Can be derived from other attributes (e.g., Age from DateOfBirth).
The Enhanced Entity-Relationship (EER) Model
EER Model:
Schema Diagrams:
• SQL (Structured Query Language): Standard language for querying and managing data.
Normalization:
• 1NF (First Normal Form): Ensures each table column contains atomic values and each
column contains values of a single type.
• 2NF (Second Normal Form): Based on 1NF, ensures all non-key attributes are fully
functional dependent on the primary key.
• BCNF (Boyce-Codd Normal Form): A stricter version of 3NF, every determinant must be
a candidate key.
• 4NF (Fourth Normal Form): Based on BCNF, ensures no multi-valued dependencies.
Transactions in SQL:
• Transaction: A sequence of one or more SQL statements that are executed as a unit.
• ACID Properties:
o Consistency: Ensures that a transaction brings the database from one valid state to
another.
Recovery Concepts:
• Data recovery: Process of restoring the database to a correct state in the event of a failure.
• Log-based recovery: Uses a log of all changes made to the database to restore the system.
• Shadow Paging: Uses a shadow page table to keep track of changes. The original page table
points to the current database, while the shadow page table is updated.
• Types of Backup:
o Incremental backup: Only the changes made since the last backup.
o Differential backup: All changes made since the last full backup.