Database Management System(DBMS)

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

64 Terms

1
New cards

What is DBMS ?

A Database Management System (DBMS) is a software system that provides an efficient, reliable, convenient, and safe multi-user storage of and access to large amounts of data.
It allows users to define, create, maintain, and control access to the database.
A DBMS acts as an interface between the user and the database, ensuring data consistency, integrity, and security while supporting query processing, transaction management, and recovery.
It also reduces data redundancy and enforces data sharing among multiple applications.

2
New cards

๐Ÿ“Œ Applications of DBMS

  • Banking

  • Airlines & Railways

  • Education

  • Telecommunication

  • Sales & Marketing

  • Human Resources (HR)

  • Healthcare

3
New cards

Banking

๐Ÿ‘‰ To store customer records, transactions, and accounts securely.
Example: ATM transactions managed by DBMS.

4
New cards

Airlines & Railways

๐Ÿ‘‰ For reservation systems and ticket booking.
Example: IRCTC seat booking system.

5
New cards

Education

๐Ÿ‘‰ To maintain student records, results, and library management.
Example: University databases for exams.

6
New cards

Telecommunication

๐Ÿ‘‰ For call records, billing, and customer data.
Example: Jio call & data usage tracking

7
New cards

Sales & Marketing

๐Ÿ‘‰ To manage product details, customer data, and sales reports.
Example: Amazon recommendation system.

8
New cards

Human Resources (HR)

๐Ÿ‘‰ For employee records, payroll, and recruitment.
Example: Company HR software.

9
New cards

Healthcare

๐Ÿ‘‰ To manage patient records, hospital management, and lab results.
Example: Apollo Hospital patient database.

10
New cards

๐Ÿ“Œ Characteristics of DBMS

  • Data Integrity

  • Data Security

  • Data Consistency

  • Data Sharing (Multi-user support)

  • Backup and Recovery

  • Reduced Data Redundancy

  • Data Independence

11
New cards

Data Integrity

๐Ÿ‘‰ Ensures accuracy and consistency of data.
Example: Student marks entered correctly stay consistent across system.

12
New cards

Data Security

๐Ÿ‘‰ Provides restricted access with authentication.
Example: Only bank employees can access customer details.

13
New cards

Data Consistency

๐Ÿ‘‰ Same data appears the same to all users.
Example: Balance in ATM and online banking matches.

14
New cards

Data Sharing (Multi-user support)

๐Ÿ‘‰ Many users can access data at the same time.
Example: Multiple clerks updating railway reservations.

15
New cards

Backup and Recovery

๐Ÿ‘‰ Automatic backup and restore in case of failures.
Example: Recovering lost data after system crash.

16
New cards

Reduced Data Redundancy

๐Ÿ‘‰ Eliminates duplicate copies of data.
Example: Customer info stored only once, not repeated in every table.

17
New cards

Data Independenc

๐Ÿ‘‰ Changes in database structure do not affect applications.
Example: Adding a new column in student table without affecting apps.

18
New cards

What is MYSQL ?

MySQL is an open-source relational database management system (RDBMS) based on Structured Query Language (SQL), which is the most popular language for adding, accessing, and managing content in a database. MySQL is designed to handle a large volume of data efficiently and allows multiple users to access and manipulate the data simultaneously. It organizes data into tables consisting of rows and columns, supports various data types, and enforces data integrity through constraints, indexes, and relationships between tables.

19
New cards

๐Ÿ“ŒApplications of MySQL

  • Web Applications

  • E-commerce Platforms

  • Data Warehousing

  • Enterprise Applications

  • Logging and Analytics

  • Social Media Applications

  • Cloud-based Applications

  • Banking and Financial Services

  • Content Management Systems (CMS)

  • Gaming Applications

20
New cards

Web Applications

  • MySQL is widely used in websites to store and manage dynamic content, user information, and settings.

  • Example: WordPress, Joomla, and Drupal use MySQL as their backend database.

21
New cards

E-commerce Platforms

  • Online stores use MySQL to manage product catalogs, customer data, orders, and payment records.

  • Example: Magento, Shopify (backend uses relational databases like MySQL).

22
New cards

Data Warehousing

MySQL can store large volumes of structured data for analysis, reporting, and business intelligence.

23
New cards

Enterprise Applications

Businesses use MySQL to maintain employee records, payroll, inventory, and CRM systems.

24
New cards

Logging and Analytics

Websites and apps use MySQL to log events, track user activity, and analyze traffic patterns.

25
New cards

Social Media Applications

Platforms use MySQL to store user profiles, posts, comments, and relationships between users.

26
New cards

Cloud-based Applications

  • MySQL is integrated with cloud services for scalable, distributed, and reliable database solutions.

  • Example: Amazon RDS, Google Cloud SQL.

27
New cards

Banking and Financial Services

MySQL is used for storing transactions, account details, and other critical financial data.

28
New cards

Content Management Systems (CMS)

Manages digital content efficiently, including blogs, news portals, and media libraries.

29
New cards

Gaming Applications

Stores player information, scores, game state, and leaderboards.

30
New cards

๐Ÿ“ŒCharacteristics of MySQL

  • Open Source

  • Relational Database

  • High Performance

  • Scalability

  • Cross-Platform

  • Secure

  • Supports Transactions

  • Reliability

  • Supports Multiple Storage Engines

  • Community Support

31
New cards

Open Source

  • MySQL is free to use and its source code is publicly available.

32
New cards

Relational Database

  • MySQL stores data in tables with rows and columns, following the relational model.

33
New cards

High Performance

  • MySQL provides fast query processing and supports large databases efficiently.

34
New cards

Scalability

  • MySQL can handle small applications as well as very large databases with millions of records.

35
New cards

Cross-Platform

  • MySQL works on different operating systems like Windows, Linux, MacOS, and Unix.

36
New cards

Secure


MySQL provides strong security features like encryption, user authentication, and access control.

37
New cards

Supports Transactions

  • MySQL supports ACID (Atomicity, Consistency, Isolation, Durability) properties for reliable transactions.

38
New cards

Reliability

  • MySQL ensures data accuracy and consistency, even in case of failures.

39
New cards

Supports Multiple Storage Engines

  • MySQL allows different storage engines like InnoDB, MyISAM, Memory, etc., for flexible data storage.

40
New cards

Community Support


MySQL has a large global community that provides help, tutorials, plugins, and regular updates.

41
New cards

Q.What is database ?

A database is an organized collection of data that is stored and managed electronically, so that it can be easily accessed, retrieved, updated, and managed.

๐Ÿ”น Key Points:

  • Database stores data in structured form (tables, rows, columns).

  • It allows insertion, deletion, updation, and retrieval of data.

  • Managed by a DBMS (Database Management System) like MySQL, Oracle, SQL Server.

  • Ensures security, consistency, and accuracy of data.

42
New cards

๐Ÿ“ŒPurpose of Database

The main purpose of a database is to store, organize, and manage data efficiently so that it can be easily accessed, updated, and secured whenever needed.

๐Ÿ”น Key Purposes:

  1. Data Storage โ†’ To store large amounts of information in a structured format.

  2. Data Retrieval โ†’ To quickly search and fetch required information.

  3. Data Manipulation โ†’ To insert, update, and delete data easily.

  4. Data Security โ†’ To protect data from unauthorized access.

  5. Data Integrity โ†’ To ensure accuracy and consistency of data.

  6. Multi-user Access โ†’ To allow multiple users to work on the same data simultaneously.

  7. Backup and Recovery โ†’ To prevent data loss and restore data in case of failures.

  8. Efficient Management โ†’ To handle complex operations and large datasets effectively.

43
New cards

๐Ÿ“ŒCharacteristics of Database

๐Ÿ”น Characteristics of Database

  1. Structured Data Storage

    • Data is stored in a well-organized format such as tables, rows, and columns.

  2. Data Independence

    • Database is separate from the application program, so changes in storage do not affect the application.

  3. Reduced Data Redundancy

    • Same data is not stored multiple times, which saves storage and avoids duplication.

  4. Data Consistency

    • Ensures that data remains accurate and the same across the whole system.

  5. Data Security

    • Provides authentication, authorization, and encryption to protect data from unauthorized access.

  6. Multi-user Access

    • Many users can access the database at the same time without conflict.

  7. Data Integrity

    • Maintains correctness and reliability of data using constraints (e.g., primary key, foreign key).

  8. Backup and Recovery

    • Automatic backup and recovery mechanisms protect data from crashes or failures.

  9. Scalability

    • Can handle increasing amounts of data and users without performance loss.

  10. Data Sharing

    • Different applications and users can share the same data.

44
New cards

๐Ÿ“ŒComponents of a Database

  1. Hardware

    • The physical devices used to store and run the database.

    • Example: Servers, storage devices, computers.

  2. Software

    • The programs that manage the database.

    • Example: DBMS (MySQL, Oracle, SQL Server).

  3. Data

    • The actual information stored in the database.

    • Example: Student records, bank transactions, employee details.

  4. Users

    • People who interact with the database.

    • Types:

      • Database Administrator (DBA): Manages database.

      • Application Programmers: Write programs to access data.

      • End Users: Use applications to get results.

  5. Procedures

    • Instructions, rules, and guidelines to design, operate, and manage the database.

  6. Database Access Language

    • A special language to communicate with the database.

    • Example: SQL (Structured Query Language).

45
New cards

๐Ÿ“ŒImportant Functions of DBMS

  1. Data Storage, Retrieval, and Update

    • Stores large volumes of data and allows easy insertion, deletion, and modification.

  2. Data Dictionary Management

    • Maintains metadata (information about data) like structure, constraints, and relationships.

  3. Transaction Management

    • Ensures ACID properties (Atomicity, Consistency, Isolation, Durability) for reliable transactions.

  4. Concurrency Control

    • Allows multiple users to access data at the same time without conflict.

  5. Data Integrity

    • Ensures correctness and consistency of data using constraints like primary key, foreign key, etc.

  6. Data Security

    • Provides user authentication, authorization, and encryption to protect data.

  7. Backup and Recovery

    • Maintains data safety by creating backups and restoring data in case of failure.

  8. Data Independence

    • Changes in storage structure do not affect the application program.

  9. Data Sharing

    • Provides a common platform so that multiple users and applications can share the same data.

  10. Data Communication Interface

  • Provides an interface (SQL) for users and applications to communicate with the database.

46
New cards

๐Ÿ“ŒOperations of Database

1. Create (Insertion)

  • Used to insert new data into the database.

  • Example: Adding a new student record in the student table.

  • SQL:

    INSERT INTO Students (RollNo, Name, Age) VALUES (101, 'Rahul', 20);
    

2. Read/Retrieve (Selection)

  • Used to fetch required data from the database.

  • Example: Display all studentsโ€™ names.

  • SQL:

    SELECT Name FROM Students;
    

3. Update (Modification)

  • Used to change existing data in the database.

  • Example: Update a studentโ€™s age.

  • SQL:

    UPDATE Students SET Age = 21 WHERE RollNo = 101;
    

4. Delete (Removal)

  • Used to remove unwanted data from the database.

  • Example: Delete a student record.

  • SQL:

    DELETE FROM Students WHERE RollNo = 101;
    

47
New cards

๐Ÿ“ŒComponents of DBMS

  1. Hardware

    • The physical devices where data is stored and processed.

    • Example: Servers, storage devices, and client computers.

  2. Software

    • The actual DBMS software that manages the database.

    • Example: MySQL, Oracle, SQL Server, PostgreSQL.

  3. Data

    • The actual information stored in the database, organized in tables, records, and fields.

    • Example: Student records, employee details, bank transactions.

  4. Users

    • People who interact with the DBMS.

    • Types of Users:

      • Database Administrators (DBA): Manage the database.

      • Application Programmers: Write programs to access data.

      • End Users: Use applications to retrieve results.

  5. Procedures

    • The rules, guidelines, and instructions to design, operate, and maintain the database.

      6.Query Processor

      • Converts user queries (like SQL commands) into low-level instructions that the database can understand.

      7.Database Engine

      • The core service for storing, retrieving, and updating data.

      • Handles tasks like indexing, concurrency control, and transaction processing.

      8.Database Schema (Meta-data)

      • The structure or blueprint of the database, which defines tables, relationships, and constraints.

48
New cards

๐Ÿ“ŒApplications of DBMS

  1. Banking Systems

    • Used for storing customer information, accounts, loans, and transaction records.

    • Example: Online banking, ATM transactions.

  2. Airlines and Railway Reservation

    • Used for booking, cancellation, and scheduling.

    • Example: IRCTC railway booking system.

  3. E-commerce and Online Shopping

    • Manages product catalogs, customer profiles, orders, and payments.

    • Example: Amazon, Flipkart.

  4. Education Sector

    • Used in schools and universities to store student records, exam results, and fee details.

    • Example: College ERP systems.

  5. Healthcare and Hospitals

    • Manages patient details, medical history, billing, and doctor information.

    • Example: Hospital Management System.

  6. Telecommunication

    • Stores call records, billing, and customer subscriptions.

    • Example: Jio, Airtel databases.

  7. Government and Public Services

    • Used for maintaining citizen records, taxation, and voter information.

    • Example: Aadhaar database in India.

  8. Social Media Platforms

    • Store user profiles, messages, photos, and posts.

    • Example: Facebook, Instagram, Twitter.

  9. Library Management

    • Manages books, members, issue-return records, and fines.

  10. Corporate Sector (Business)

    • Used in HR systems, payroll, and employee management.

    • Example: Employee attendance database.

49
New cards

๐Ÿ“ŒWho is a Database Administrator (DBA)?

A Database Administrator (DBA) is a person responsible for managing, maintaining, and controlling the database system. The DBA ensures that the database is secure, reliable, available, and performing efficiently for multiple users.

50
New cards

๐Ÿ“ŒFunctions / Responsibilities of DBA

  1. Database Design

    • Helps in designing the database structure (tables, relationships, constraints).

  2. Installation and Configuration

    • Installs and configures DBMS software (e.g., MySQL, Oracle, SQL Server).

  3. Security Management

    • Provides user authentication, permissions, and access control to protect data.

  4. Backup and Recovery

    • Creates regular backups and restores data in case of system failure.

  5. Performance Monitoring

    • Monitors query speed, memory usage, and tuning database for fast performance.

  6. Data Integrity and Consistency

    • Ensures that stored data remains correct, reliable, and consistent.

  7. User Management

    • Creates and manages user accounts and provides appropriate access rights.

  8. Troubleshooting

    • Fixes issues like system crashes, errors, or slow performance.

  9. Database Upgradation

    • Updates DBMS software with the latest patches and features.

  10. Documentation

  • Maintains proper documentation of database structures, policies, and procedures.

51
New cards

๐Ÿ“ŒER Model (Entityโ€“Relationship Model)

The Entityโ€“Relationship (ER) Model is a high-level data model used for designing and representing the structure of a database. It shows the entities (objects), their attributes (properties), and the relationships between entities.

52
New cards

๐Ÿ“ŒMain Components of ER Model

  1. Entity

    • An object or thing in the real world that has a distinct existence.

    • Types:

      • Strong Entity โ†’ Can exist independently (e.g., Student, Employee).

      • Weak Entity โ†’ Cannot exist without another entity (e.g., Dependent, Order Item).

  2. Attributes

    • Properties or characteristics of an entity.

    • Types:

      • Simple Attribute โ†’ Single value (e.g., Name, Age).

      • Composite Attribute โ†’ Can be divided into sub-parts (e.g., FullName โ†’ FirstName + LastName).

      • Derived Attribute โ†’ Value derived from another attribute (e.g., Age from Date of Birth).

      • Multivalued Attribute โ†’ Can have multiple values (e.g., Phone Numbers).

  3. Relationship

    • Association between two or more entities.

    • Types:

      • One-to-One (1:1) โ†’ One entity relates to only one (e.g., Personโ€“Passport).

      • One-to-Many (1:N) โ†’ One entity relates to many (e.g., Teacherโ€“Students).

      • Many-to-Many (M:N) โ†’ Many entities relate to many (e.g., Studentsโ€“Courses).

  4. Keys

    • Used to identify entities uniquely.

    • Example: Primary Key (RollNo for Student), Foreign Key (CourseID in Enrollment).

53
New cards

๐Ÿ“ŒFeatures of ER Model

  1. High-Level Conceptual Model

    • ER model represents the real-world entities and relationships in an easy-to-understand diagram.

  2. Entity Representation

    • Entities (like Student, Teacher, Employee) are clearly represented using rectangles.

  3. Attributes Representation

    • Properties of entities are shown as ovals (e.g., Student โ†’ Name, Age, RollNo).

  4. Relationship Representation

    • Associations between entities are represented using diamonds (e.g., Student enrolls in Course).

  5. Different Types of Entities and Relationships

    • Supports strong & weak entities, and 1:1, 1:N, M:N relationships.

  6. Keys Identification

    • Allows defining primary keys, foreign keys, and candidate keys for uniqueness.

  7. Graphical Notation

    • Uses simple symbols (rectangles, ovals, diamonds) to design the database visually.

  8. Supports Derived and Multivalued Attributes

    • Shows derived (Age from DOB) and multivalued (Phone Numbers) attributes.

  9. Logical Database Design

    • Acts as a blueprint for converting into relational schema (tables).

  10. Easy Communication

    • Provides clear communication between database designers, developers, and end users.

54
New cards

๐Ÿ“ŒEER Model (Enhanced Entity-Relationship Model)

The Enhanced Entity Relationship (EER) Model is an extension of the basic ER model that includes additional concepts like specialization, generalization, inheritance, and categories. It is used to design more complex and detailed databases.

55
New cards

๐Ÿ“ŒFeatures of EER Model

  1. Supports Inheritance

    • Child entities can inherit attributes and relationships from parent entities (like OOP concepts).

  2. Specialization

    • Breaking a high-level entity into lower-level sub-entities (e.g., Employee โ†’ Teacher, Clerk, Manager).

  3. Generalization

    • Combining similar entities into one higher-level entity (e.g., Car and Bike โ†’ Vehicle).

  4. Categories (Union Types)

    • Allows an entity to be a subclass of multiple superclasses.

  5. More Expressive than ER Model

    • Captures advanced database constraints and real-world semantics.

  6. Support for Complex Applications

    • Useful for applications like banking, insurance, hospital, etc.

  7. Graphical Representation

    • Provides clear diagrams with specialization/generalization hierarchies.

56
New cards

๐Ÿ”น Advantages of EER Model

  • Better representation of real-world scenarios.

  • Handles complex relationships.

  • Supports inheritance and advanced constraints.

  • Easy conversion into relational schema.

57
New cards

๐Ÿ”น Disadvantages of EER Model

  • More complex than ER model.

  • Difficult for beginners to understand.

  • Time-consuming design.

58
New cards

๐Ÿ”น What is Superclass?

A Superclass is a higher-level entity in the EER Model from which lower-level entities (subclasses) inherit attributes and relationships.

It represents the general entity type in generalization/specialization hierarchy.

59
New cards

๐Ÿ”น What is Subclass?

A Subclass is a lower-level entity in the EER (Enhanced Entity Relationship) Model that inherits attributes and relationships from its Superclass and may also have its own specific attributes.

It represents a specialized version of the superclass.

60
New cards

๐Ÿ”น What is Aggregation in DBMS (EER Model)?

Aggregation is a concept in EER Model that represents a relationship between a relationship and an entity.
It is also called a โ€œhas-aโ€ relationship of relationshipsโ€.

๐Ÿ‘‰ Jab ek relationship itself ek entity jaisa behave kare (aur uska use kisi aur entity ke sath relationship banane ke liye ho), tab use Aggregation kehte hain.

61
New cards

๐Ÿ”น What is Category (Union) in DBMS (EER Model)?

Category (also called Union Type) is a concept in the Enhanced ER (EER) model where a single subclass is derived from multiple superclasses.

๐Ÿ‘‰ Matlab ek entity (subclass) ek se zyada superclasses ka member ho sakti hai, aur uska participation unka union hota hai.

62
New cards
63
New cards
64
New cards