0% found this document useful (0 votes)
3 views2 pages

DBMS Complete Guide Clean

The document provides a comprehensive guide on Database Management Systems (DBMS), comparing it with file systems across various features such as data redundancy and security. It covers normalization rules, ACID properties, and includes practical SQL coding assignments and a step-by-step project plan for a Library Management System. Additionally, it contains examples of SQL queries and an ER diagram for a library system.

Uploaded by

73SAUMYA SINHA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

DBMS Complete Guide Clean

The document provides a comprehensive guide on Database Management Systems (DBMS), comparing it with file systems across various features such as data redundancy and security. It covers normalization rules, ACID properties, and includes practical SQL coding assignments and a step-by-step project plan for a Library Management System. Additionally, it contains examples of SQL queries and an ER diagram for a library system.

Uploaded by

73SAUMYA SINHA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DBMS Complete Guide - From Basics to Advanced

Summary Tables

DBMS vs File System


-------------------
Feature | File System | DBMS
--------------------|-------------|-------
Data Redundancy | High | Low
Consistency | Poor | Good
Security | Low | High
Query capability | Limited | Powerful (SQL)

Normalization
-------------
Normal Form | Rule
------------|---------------------------
1NF | No multivalued attributes
2NF | No partial dependency
3NF | No transitive dependency
BCNF | Every determinant is candidate key

ACID Properties
---------------
Property | Meaning
------------|--------------------------
Atomicity | All or nothing
Consistency | Valid state transitions
Isolation | Transactions independent
Durability | Changes persist after commit

Practice Questions & Solutions

1. Write SQL to list employees earning greater than 5000.


SELECT * FROM Employee WHERE Salary > 5000;

2. ER diagram: Library System (Entities: Book, Member, Loan)


- Book (BookID, Title, Author)
- Member (MemberID, Name)
- Loan (LoanID, BookID, MemberID, LoanDate)

3. Normalize:
Unnormalized: (StudentID, StudentName, Courses( CourseName, Marks ))
Solution:
- Student(StudentID, StudentName)
- Course(CourseID, CourseName)
- Enrollment(StudentID, CourseID, Marks)

Step-by-Step Project Plan

Project: Library Management System

1. Draw ER diagram
2. Convert ER to relational schema
3. Normalize tables to BCNF
4. Write SQL to:
- Add new books and members
- Issue or return books
- Search books by author or title
5. Create indexes on BookID and MemberID
6. Implement basic app (optional): Python or Java with DB

SQL Coding Assignments

Write SQL queries:


- Insert 5 students with different courses
- List students enrolled in DBMS
- Find students with greater than 90 marks in any subject
- Count books loaned per member

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy