






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







































n HOW TO USE THESE NOTES
These notes are designed to take you from first-reading to exam-ready in a structured way. Follow the learning sequence below for every topic:
Step 1 Learn the Definition Read the highlighted Definition Box first.
Step 2
Understand Easy Meaning Read the simple explanation to grasp the concept.
Step 3 Memorize Keywords Keywords in the green box are exam scoring points.
Step 4 Study Key Theory Bullet points give you structured exam content.
Step 5 Learn the Example Examples anchor abstract concepts to real situations.
Step 6 Practice the Diagram Redraw diagrams on paper until you can reproduce them.
Step 7
Memorize Exam Answer The exam answer is your model response template.
Step 8 Use Memory Cues Purple cues are last-minute triggers for your memory.
n EXAM ANSWER WRITING STRATEGY
QUESTION
ā IDENTIFY TOPIC
ā WRITE DEFINITION
ā WRITE 3ā5 KEY POINTS
ā ADD DIAGRAM / TABLE
ā END WITH EXAMPLE / CONCLUSION
n UNIT 1 ā COMPLETE THEORY
1. File Processing System
n EXAM PRIORITY: VERY HIGH
Before DBMS, each application maintained its own data files. As applications multiplied, the same data ended up in multiple places, making management difficult.
Application 1 ā File 1 | Application 2 ā File 2 | Application 3 ā File 3
Traditional system, separate files, application programs, data files, file format, data management
In a bank: as the bank grew, each new service (loans, accounts, payroll) got its own program and files. Updating customer address meant updating it in every file separately.
Q: What is a File Processing System?
A: A File Processing System is a traditional data management system in which data is stored in separate files and accessed through application programs. As the number of applications and files increases, problems such as redundancy, inconsistency and data isolation arise.
n FILE SYSTEM = Separate Files + Separate Programs
2. Problems of File Processing System
n EXAM PRIORITY: VERY HIGH
The following six major problems of the traditional file processing system motivated the development of DBMS:
2.1. Data Redundancy and Data Inconsistency
n EXAM PRIORITY: VERY HIGH
Same data stored in File A, File B, File C. If File A is updated but File B is not ā Inconsistency.
Redundancy, duplication, multiple places, inconsistency, different versions, update
Student address is stored in 3 different files. One file is updated; others still contain the old address.
Q: What are Data Redundancy and Data Inconsistency?
A: Data redundancy means storing the same data in more than one place. Data inconsistency occurs when different copies of the same data contain different values due to improper updating. These are major limitations of traditional file processing systems.
n Repeat Data ā Redundancy
n Different Data ā Inconsistency
2.2. Difficulty in Accessing Data
n EXAM PRIORITY: HIGH
Users sometimes need information that was not planned for. Then a new application program must be written, which takes time and effort.
2.4. Concurrency Problems / Multiple Users
n EXAM PRIORITY: VERY HIGH
User A and User B both access the same bank account balance simultaneously. Without control, the final balance may become incorrect.
Multiple users, simultaneous access, simultaneous update, concurrency, control
Bank balance: User A withdraws n500, User B withdraws n300 at the same time. Without concurrency control, the final balance may reflect only one withdrawal.
Q: What is a concurrency problem?
A: A concurrency problem occurs when multiple users access or update the same data simultaneously. Without proper concurrency control, operations may interfere with each other and produce incorrect results.
n Many Users + Same Time = Concurrency
2.5. Security Issues
n EXAM PRIORITY: HIGH
Not every user should see all the data. Payroll staff should see employee salary records but not all customer account details. File systems make such fine-grained access control difficult.
Authorization, access control, authorized user, security, restricted data
Q: Explain security issues in traditional file systems.
A: In a traditional file processing system, it is difficult to provide controlled access to data. Not every user should be allowed to view or modify all data. Therefore, proper authorization and access control are required.
2.6. Integrity Issues
n EXAM PRIORITY: HIGH
Data being stored is not enough ā data must be correct and follow rules. For example, an account balance should not go below a defined minimum. File systems cannot easily enforce such constraints.
Correctness, validity, consistency, integrity constraints, rules
Q: What is Data Integrity?
A: Data integrity refers to the correctness and consistency of data maintained according to defined rules called integrity constraints.
DBMS is the software that sits between users and the database. It manages all data operations and enforces rules, security and recovery mechanisms.
Software system, define, create, maintain, manipulate, control access, database, concurrency, security, recovery
Examples: MySQL, Oracle, SQL Server, PostgreSQL.
Q: What is DBMS?
A: A Database Management System is a software system used to define, create, maintain and manipulate databases. It also controls access to data and provides facilities for secure and efficient data management, including concurrency control, backup and recovery.
n DBMS = Define + Create + Maintain + Manipulate + Control Access
5. Database vs DBMS
n EXAM PRIORITY: VERY HIGH
Basis Database DBMS Meaning Structured collection of related data Software system for managing data
Nature Data Management Software
Purpose Stores organized data Manages, accesses and controls data
Example Student records, Bank records MySQL, Oracle, SQL Server
n DATABASE = DATA
n DBMS = MANAGER OF DATA
6. Data Abstraction
n EXAM PRIORITY: VERY HIGH
Database systems are complex. Data abstraction hides this complexity from users. Each user sees only what they need to see ā not how or where data is physically stored.
Hiding complexity, abstract view, storage details, three levels, physical, conceptual, view
Q: What is Data Abstraction? Explain its levels.
A: Data Abstraction is the process of hiding unnecessary data-storage details and presenting only relevant information to users. It has three levels: Physical Level (how data is stored), Conceptual Level (what data is stored and its relationships) and View Level (what a particular user sees).
n Physical = HOW
n Conceptual = WHAT + RELATIONSHIP
n View = WHAT A USER SEES
A data model defines the structure of a database ā what data is stored, how data is related to other data, what data means, and what rules must be followed.
Data, relationships, meaning, constraints, object-based, record-based, relational, network, hierarchical
Q: What is a Data Model? Explain its types.
A: A Data Model is a collection of concepts used to describe data, relationships, the meaning of data and constraints. The two main categories are Object-Based Logical Models (e.g., ER Model) and Record-Based Logical Models (Relational, Network, Hierarchical).
n Data Model = Data + Relationships + Meaning + Constraints
DATA MODELS
Object-Based Record-Based
Relational Model Network Model Hierarchical Model
8. Object-Based Logical Model
n EXAM PRIORITY: HIGH
In this model, data is organized around objects rather than tables or records. Objects store both data and the operations that work on that data.
Object, data, methods, class, blueprint, type, higher-level, logical structure
n OBJECT = DATA + METHODS
n CLASS = BLUEPRINT
9. Object
n EXAM PRIORITY: HIGH
Think of an Object as a self-contained unit: it knows its data AND knows how to operate on it.
Object, data, methods, operations, software structure, entity
Bank Account Object: ⢠Data: Account Number, Balance ⢠Methods: Pay Interest, Withdraw, Deposit
n EXAM PRIORITY: HIGH
In this model, the database is organized into records. Each record has a fixed format with a fixed number of fields. Three widely used types: Relational, Network and Hierarchical.
Record, field, fixed format, fixed-length, relational, network, hierarchical
n Record-Based = Fixed Records with Fixed Fields
12. Relational Model
n EXAM PRIORITY: VERY HIGH
Data is organized as tables. Each row represents one record. Each column represents one attribute. This is the most widely used database model today.
Tables, rows, tuples, columns, attributes, relations
Student table: Roll No | Name | Course | Address Each row is one student record.
n RELATIONAL MODEL = TABLES
n Row = Record | Column = Attribute
13. Network Model
n EXAM PRIORITY: HIGH
Unlike the hierarchical model (tree), the network model allows more flexible many-to-many connections between records.
Network, graph, multiple relationships, records, links, many-to-many
n NETWORK = GRAPH-LIKE (Multiple connections)
14. Hierarchical Model
n EXAM PRIORITY: HIGH
Data is arranged like a family tree. Each node has exactly one parent (except the root). Simple but inflexible ā cannot represent many-to-many relationships.
Q: What is an Entity?
A: An entity is a real-world object that can be identified separately in a database system.
n ENTITY = Real-world, identifiable, separate object
16. Entity Set
n EXAM PRIORITY: VERY HIGH
Just as a single student is an entity, all students together form the Student Entity Set.
Collection, similar entities, group, entity set, same type
Student 1, Student 2, Student 3 ā STUDENT ENTITY SET
Q: What is an Entity Set?
A: An Entity Set is a collection of similar entities that share the same attributes.
n ONE = ENTITY
n GROUP of similar = ENTITY SET
17. Attribute
n EXAM PRIORITY: VERY HIGH
Attributes are the details about an entity. A Student entity has attributes like Roll No, Name, Address and Course.
Property, characteristic, describes entity, oval, ER diagram
STUDENT entity: Roll No, Name, Address, Course ā all are attributes.
n ENTITY = WHO / WHAT
n ATTRIBUTE = DETAILS ABOUT IT
18. Relationship
n EXAM PRIORITY: VERY HIGH
When two entities are connected, that connection is a relationship. Example: STUDENT Enrolls in COURSE ā 'Enrolls' is the relationship.
Association, entities, connection, diamond, ER diagram, relationship
STUDENT nn ENROLLS nn COURSE
n RELATIONSHIP = ASSOCIATION between entities