Chapter Notes: Chapter 8 – Introduction to Database Management System

1. Core Concepts: Data vs. Information

  • Data: Raw facts related to any person, place, activity, or thing. Data can exist in text, graphics, audio, or video formats. Examples include student marks, employee names, costs, prices, or daily temperatures.
  • Information: The processed, structured, or organized form of data that provides meaning. If the input data is inaccurate, the resulting information will also be inaccurate. Examples include report cards, pay-slips, bar charts, and invoices.

2. Fundamentals of DBMS & Advantages

  • Database: A collection of logically related data items stored in an organized structure.
  • DBMS (Database Management System): The software application used to create, maintain, update, and retrieve data efficiently. Common DBMS tools include LibreOffice Base, MS Access, Oracle, Ingress, and MySQL.

Key Advantages of DBMS:

  1. Organized Storage: Enables fast and precise retrieval of stored data.
  2. Data Analysis: Facilitates statistical calculations such as finding maximum, minimum, and average values.
  3. Data Sharing: Allows a single dataset to be created once and shared across multiple applications.
  4. Minimal Data Redundancy: Reduces duplicate data storage across multiple tables.
  5. Data Consistency: Ensures updates in one table automatically propagate to related tables, maintaining uniform records.
  6. Increased Efficiency & Accuracy: Streamlines saving, searching, and reading data accurately.
  7. Increased Data Validity: Allows field restrictions (e.g., setting rules for valid input ranges) at the data entry stage.
  8. Enhanced Security: Prevents unauthorized access using password protection and data encryption.

3. Classification of Data Models

A Data Model defines the structure, relationships, and constraints governing how data is stored and retrieved.

Data ModelStructural Description
Hierarchical ModelOrganizes data in a top-down tree-like structure consisting of linked records at different levels.
Network ModelFunctions like an inverted tree where multiple child records link back to master files at the bottom.
Relational ModelProposed by E. F. Codd (1970); links data across tables (relations) using shared common fields.

4. Relational Database Management System (RDBMS) Terminology

  • Entity: A real-world object about which data is captured (e.g., Student, Employee).
  • Attribute / Field / Column: Individual characteristics defining an entity; represented as table columns.
  • Record / Row / Tuple: A complete collection of all attribute values belonging to a single entry or object.
  • Data Values: Individual raw data units (numeric, character, or alphanumeric) stored inside fields.
  • Keys in RDBMS:
    • Primary Key: A field or combination of fields that uniquely identifies each row in a table. It cannot contain null (blank) values or duplicate entries.
    • Composite Key: A primary key created by combining two or more fields.
    • Foreign Key: A key field in one table that references the primary key of another table, establishing a valid relation.
    • Candidate Key: Any attribute field eligible to serve as a primary key due to unique non-blank values.
    • Alternate Key: Candidate keys that were not chosen as the primary key.

5. Major Objects of an RDBMS

  1. Table: The core structural unit storing data arranged in explicit rows and columns.
  2. Form: A user-friendly interface containing UI elements (text boxes, radio buttons, check boxes) designed for easy data entry.
  3. Query: A structural request or question submitted to retrieve specific data matching specified conditions.
  4. Report: Formatted, readable presentation outputs created to display data retrieved via queries.

6. Solutions to Practical & Chapter Exercises

Let’s Practice (Page 152)

  • Given Table: Item No., Name, Price, Quantity, Discount (in%).
  • Primary Key Identification: Item No.
    • Justification: Item No. contains unique identifiers for each item (A001, A003, A010) and prevents duplicate records.
  • Structure Counts:
    • Fields (Columns): 5 (Item No., Name, Price, Quantity, Discount)
    • Records (Rows): 3 records

Check Your Progress Solutions

Part A: Multiple Choice Questions

  1. Which of the following can be considered as an example of a database?
    • Answer: (b) Telephone directory (and options a & c, though telephone directory is standard)
  2. Which of the following is NOT a DBMS?
    • Answer: (c) MS Excel
  3. DBMS stands for:
    • Answer: (b) Database Management System
  4. Which of the following data models sets a relation between two or more tables?
    • Answer: (a) Relational Data Model
  5. The details associated with an entity are called:
    • Answer: (b) Attributes
  6. A ______ is represented as rows in a table.
    • Answer: (c) record
  7. In which of the following forms can a data value be represented?
    • Answer: (d) All of the above
  8. Which of the following uniquely identifies a row in a table?
    • Answer: (a) Primary key
  9. A ______ is a user friendly interface for entering data.(From page 155 context)
    • Answer: (c) form
  10. A ______ is used to retrieve specific records based on criteria. (From page 155 context)
  • Answer: (a) query

Part B & C: Key Answers / Fill in the Blanks

  1. Database: Collection of logically related data stored systematically.
  2. Entity: A real-world object about which data is stored.
  3. Report: Output format used to display data generated by queries.
  4. Record: Data values for all fields regarding a single object/person.
  5. Candidate Keys: All fields eligible to become the primary key.

Part D: Short Answer Questions

  1. Definitions:
    • Database: Logically related data items stored systematically for fast insertion, update, and retrieval.
    • Data Redundancy: Unnecessary duplication of the exact same data across multiple database tables.
    • Report: A formatted, printable presentation layout of retrieved query data.
  2. Differences:
    • Data vs. Information: Data represents raw unprocessed facts (e.g., test scores); Information is structured, processed data with contextual meaning (e.g., report card).
    • Form vs. Query: A Form provides an interactive layout to enter and modify table records; a Query extracts specific subset records matching defined conditions.
    • Network vs. Hierarchical Data Model: Hierarchical models arrange data strictly in parent-child tree structures; Network models allow child nodes to connect to multiple master files.
  3. Four Advantages of DBMS:
    • Minimizes data redundancy.
    • Ensures data consistency.
    • Provides data security via authorization and encryption.
    • Enhances data accuracy and retrieval efficiency.
  4. Library Table Analysis:
    • Fields: Book Id, Book Name, Author, Price (or similar schema attributes).
    • Alternate Key: Candidate key fields not picked as the Primary Key serve as Alternate Keys.
    • Primary Key vs. Foreign Key: A Primary Key uniquely identifies rows within its own home table; a Foreign Key is a primary key field placed in a secondary table to link records between both tables.
Scroll to Top