Database Management System Notes | B.Sc. (Information Technology) Semester 1 | Mumbai University | munotes
Official Notes munotes.in
Database Management System
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 1
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in First Year
Contents
Module I Databases and transactions, data models, database design and the ER diagram, the relational database model
- What a Database Is, and What a Database System Is 1
- The Purpose of a Database System 5
- Setting Up MySQL and Your First Statements 10
- The View of Data: Schemas and Instances 14
- The Three Levels of Abstraction, and Data Independence 18
- Degrees of Data Abstraction 22
- Relational Databases: the Table as the Only Structure 26
- Inside a DBMS: the Parts, and the People 30
- Client Server, Two Tier and Three Tier Architecture 35
- Transaction Management: What a Transaction Is 40
- ACID: the Four Properties Every Transaction Must Have 44
- Savepoints, and the Limits of Undo 49
- Why a Data Model Matters 53
- The Basic Building Blocks 57
- Business Rules, and Where They Come From 61
- Turning Business Rules Into a Design 66
- Before Databases: the File System and Its Problems 71
- The Hierarchical and Network Models 75
- The Relational Model, and Why It Won 80
- The Object, Object Relational and XML Models 85
- NoSQL, and What It Gave Up 90
- Database Design: the Whole Process 95
- The ER Model: Entities, Entity Types and Entity Sets 100
- Attributes and Their Kinds 105
- Keys in the ER Model 110
- Relationships, Relationship Sets, Degree and Roles 115
- Key Constraints and Cardinality 119
- Participation Constraints: Total and Partial 124
- Weak Entities and Identifying Relationships 128
- Generalization, Specialization and Inheritance 133
- Aggregation 138
- Drawing an ER Diagram: Chen Notation 142
- Crow's Foot Notation, and Reading Someone Else's Diagram 146
- A Complete ER Diagram, Built From Requirements 150
- ERD Issue: an Entity or an Attribute 155
- ERD Issue: an Entity or a Relationship 159
- ERD Issue: Binary or Ternary 163
- ERD Issue: the Fan Trap and the Chasm Trap 167
- Codd's Rules: Rule Zero and Rules One to Four 172
- Codd's Rules: Five to Eight 177
- Codd's Rules: Nine to Twelve, and How MySQL Scores 181
- Relational Schemas: Mapping Entities to Tables 186
- Mapping Relationships to Tables 190
- Mapping Multivalued Attributes, Specialization and N-ary Relationships 195
- The Logical View of Data: What a Relation Is 200
- Keys in the Relational Model 205
- The Foreign Key 209
- Integrity Rules: Entity and Referential Integrity 213
- Domain Integrity: NOT NULL, DEFAULT and CHECK 217
- Referential Actions: CASCADE, SET NULL and RESTRICT 221
- The Elements of a Relational DBMS, in One Place 226
Module II Design theory and normalization, SQL and indexing, transaction management, concurrency control and recovery
- Functional Dependencies 230
- Finding the Functional Dependencies of a Table 234
- Armstrong's Axioms and the Rules of Inference 238
- Attribute Closure, and Finding Every Candidate Key 242
- Equivalent FD Sets and the Minimal Cover 247
- Why Normalize: the Three Anomalies 252
- First Normal Form 256
- Second Normal Form 260
- Third Normal Form 264
- Boyce Codd Normal Form 269
- Lossless Join Decomposition 273
- Dependency Preservation, and 3NF Synthesis 278
- Decomposing Into BCNF, and What It Costs 283
- Multivalued Dependencies and Fourth Normal Form 288
- Join Dependencies and Fifth Normal Form 292
- Inclusion Dependencies and Domain Key Normal Form 297
- One Bad Table, Normalized All the Way 302
- Introduction to SQL: Where It Came From, and What It Is Made Of 307
- The Five Statement Families: DDL, DML, DQL, DCL and TCL 311
- Data Types in MySQL 315
- CREATE DATABASE, CREATE TABLE, and the Constraints That Go With Them 319
- INSERT, UPDATE and DELETE 323
- SELECT: Columns, Rows, and the Order They Come Back In 328
- WHERE: the Operators, and What NULL Does to Them 332
- Aggregate Functions, GROUP BY and HAVING 336
- String, Numeric and Date Functions 341
- Set Operations: UNION, INTERSECT and EXCEPT 346
- Joining Database Tables: the Inner Join 350
- Outer Joins, and the FULL OUTER JOIN MySQL Does Not Have 354
- Self Joins, Cross Joins and Natural Joins 359
- Complex Queries: Subqueries With IN, ANY and ALL 363
- Complex Queries: EXISTS and the Correlated Subquery 368
- Complex Queries: Derived Tables and Common Table Expressions 372
- Complex Queries: Window Functions 377
- Views: Creating, Using and Dropping 382
- Updatable Views and WITH CHECK OPTION 389
- Triggers: BEFORE, AFTER, and What They Are For 395
- Writing a Trigger That Enforces a Business Rule 402
- Schema Modification: ALTER TABLE 408
- DROP, TRUNCATE and RENAME 414
- Database Protection: What You Are Protecting Against 419
- Users, Privileges, GRANT and REVOKE 425
- Discretionary Access Control, Roles and Least Privilege 431
- File Structure: the Storage Hierarchy and the Block 437
- Records and Page Organization 441
- File Organization: Heap, Sequential, Hashed and Clustered 447
- The Buffer Manager 452
- Hashing: Static Hashing and Bucket Overflow 457
- Hashing: Extendible and Linear Hashing 462
- Indexing: What an Index Is, Dense and Sparse 467
- Multilevel Indexes and the B+ Tree 472
- Indexes in MySQL: Primary, Secondary, Clustered and Covering 479
- When an Index Does Not Help 485
- Query Processing: From SQL Text to an Evaluation Plan 491
- Relational Algebra: the Language a Plan Is Written In 495
- How a Selection Is Actually Done 500
- How a Join Is Actually Done 505
- Sorting, Materialization and Pipelining 511
- Query Optimization: Equivalence Rules and Heuristics 516
- Cost Based Optimization and Statistics 521
- Reading EXPLAIN on a Real Query 526
- Transaction Processing Concepts: the Transaction and Its States 531
- The Three Problems Concurrency Causes 535
- Schedules and What Makes One Serializable 539
- Testing Conflict Serializability with a Precedence Graph 544
- View Serializability and Recoverable Schedules 548
- Isolation Levels Seen on a Real Server 552
- Concurrency Control: Locks and Two Phase Locking 556
- Deadlock Prevention and Detection 562
- Timestamp Ordering 567
- Validation and Multiversion Concurrency Control 571
- Granularity and Intention Locks 576
- Recovery: What Can Fail, and the Log 580
- Deferred and Immediate Update 584
- Checkpoints and Recovering After a Crash 588
- Shadow Paging and Backup Against Media Failure 593
Module P Major Practical 1, Module 2: the ten practicals set on this subject
- Practical: Keeping the Journal, and the Viva 597
- Practical 1: Conceptual Design With an ER Diagram 601
- Practical 2: Databases, Tables and CRUD 604
- Practical 3: Altering, Dropping, Truncating and Backing Up 608
- Practical 4: Simple Queries and Aggregate Functions 612
- Practical 5: Date, String and Math Functions 616
- Practical 6: Inner and Outer Join Queries 620
- Practical 7: Subqueries With IN and With EXISTS 624
- Practical 8: ER Model to Relational Model, and Normalization 627
- Practical 9: Views, With and Without the Check Option 632
- Practical 10: DCL Statements, COMMIT and ROLLBACK 636
The chapters
Every chapter of this book comes with the B.Sc. (Information Technology) Semester 1 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself for the same subject.