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 176
- Codd's Rules: Nine to Twelve, and How MySQL Scores 180
- Relational Schemas: Mapping Entities to Tables 185
- Mapping Relationships to Tables 189
- Mapping Multivalued Attributes, Specialization and N-ary Relationships 194
- The Logical View of Data: What a Relation Is 199
- Keys in the Relational Model 204
- The Foreign Key 208
- Integrity Rules: Entity and Referential Integrity 212
- Domain Integrity: NOT NULL, DEFAULT and CHECK 216
- Referential Actions: CASCADE, SET NULL and RESTRICT 220
- The Elements of a Relational DBMS, in One Place 225
Module II Design theory and normalization, SQL and indexing, transaction management, concurrency control and recovery
- Functional Dependencies 229
- Finding the Functional Dependencies of a Table 233
- Armstrong's Axioms and the Rules of Inference 237
- Attribute Closure, and Finding Every Candidate Key 241
- Equivalent FD Sets and the Minimal Cover 246
- Why Normalize: the Three Anomalies 251
- First Normal Form 255
- Second Normal Form 259
- Third Normal Form 263
- Boyce Codd Normal Form 268
- Lossless Join Decomposition 272
- Dependency Preservation, and 3NF Synthesis 276
- Decomposing Into BCNF, and What It Costs 281
- Multivalued Dependencies and Fourth Normal Form 286
- Join Dependencies and Fifth Normal Form 290
- Inclusion Dependencies and Domain Key Normal Form 295
- One Bad Table, Normalized All the Way 299
- Introduction to SQL: Where It Came From, and What It Is Made Of 304
- The Five Statement Families: DDL, DML, DQL, DCL and TCL 308
- Data Types in MySQL 312
- CREATE DATABASE, CREATE TABLE, and the Constraints That Go With Them 316
- INSERT, UPDATE and DELETE 320
- SELECT: Columns, Rows, and the Order They Come Back In 325
- WHERE: the Operators, and What NULL Does to Them 329
- Aggregate Functions, GROUP BY and HAVING 333
- String, Numeric and Date Functions 338
- Set Operations: UNION, INTERSECT and EXCEPT 342
- Joining Database Tables: the Inner Join 346
- Outer Joins, and the FULL OUTER JOIN MySQL Does Not Have 350
- Self Joins, Cross Joins and Natural Joins 355
- Complex Queries: Subqueries With IN, ANY and ALL 359
- Complex Queries: EXISTS and the Correlated Subquery 364
- Complex Queries: Derived Tables and Common Table Expressions 368
- Complex Queries: Window Functions 373
- Views: Creating, Using and Dropping 378
- Updatable Views and WITH CHECK OPTION 385
- Triggers: BEFORE, AFTER, and What They Are For 391
- Writing a Trigger That Enforces a Business Rule 398
- Schema Modification: ALTER TABLE 404
- DROP, TRUNCATE and RENAME 410
- Database Protection: What You Are Protecting Against 415
- Users, Privileges, GRANT and REVOKE 421
- Discretionary Access Control, Roles and Least Privilege 427
- File Structure: the Storage Hierarchy and the Block 433
- Records and Page Organization 437
- File Organization: Heap, Sequential, Hashed and Clustered 443
- The Buffer Manager 448
- Hashing: Static Hashing and Bucket Overflow 453
- Hashing: Extendible and Linear Hashing 458
- Indexing: What an Index Is, Dense and Sparse 463
- Multilevel Indexes and the B+ Tree 468
- Indexes in MySQL: Primary, Secondary, Clustered and Covering 475
- When an Index Does Not Help 481
- Query Processing: From SQL Text to an Evaluation Plan 487
- Relational Algebra: the Language a Plan Is Written In 491
- How a Selection Is Actually Done 496
- How a Join Is Actually Done 501
- Sorting, Materialization and Pipelining 507
- Query Optimization: Equivalence Rules and Heuristics 512
- Cost Based Optimization and Statistics 517
- Reading EXPLAIN on a Real Query 522
- Transaction Processing Concepts: the Transaction and Its States 527
- The Three Problems Concurrency Causes 531
- Schedules and What Makes One Serializable 535
- Testing Conflict Serializability with a Precedence Graph 540
- View Serializability and Recoverable Schedules 544
- Isolation Levels Seen on a Real Server 548
- Concurrency Control: Locks and Two Phase Locking 552
- Deadlock Prevention and Detection 558
- Timestamp Ordering 563
- Validation and Multiversion Concurrency Control 567
- Granularity and Intention Locks 572
- Recovery: What Can Fail, and the Log 576
- Deferred and Immediate Update 580
- Checkpoints and Recovering After a Crash 584
- Shadow Paging and Backup Against Media Failure 589
Module P Major Practical 1, Module 2: the ten practicals set on this subject
- Practical: Keeping the Journal, and the Viva 593
- Practical 1: Conceptual Design With an ER Diagram 597
- Practical 2: Databases, Tables and CRUD 600
- Practical 3: Altering, Dropping, Truncating and Backing Up 604
- Practical 4: Simple Queries and Aggregate Functions 608
- Practical 5: Date, String and Math Functions 612
- Practical 6: Inner and Outer Join Queries 616
- Practical 7: Subqueries With IN and With EXISTS 620
- Practical 8: ER Model to Relational Model, and Normalization 623
- Practical 9: Views, With and Without the Check Option 628
- Practical 10: DCL Statements, COMMIT and ROLLBACK 632
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.