ποΈ Unit 3: Database Management System β Class 10 Computer Applications
π Introduction
A Database Management System (DBMS) is a software that allows users to store, manage, retrieve, and manipulate data efficiently. In the digital age, from school records to online banking and mobile apps, databases form the backbone of information systems. This unit introduces you to the world of databasesβhow to organize data in tables, run queries, create forms and reports, and build relationships between data fields.Database Management System Class 10
Letβs explore how DBMS helps in organizing and handling large volumes of data with ease and accuracy.
π 3.1 Introduction to Database and DBMS
πΉ What is a Database?
A database is an organized collection of related data that can be easily accessed, managed, and updated.
Examples:
- Student records in a school
- Customer information in a bank
- Product details in an online store
πΉ What is DBMS?
A Database Management System (DBMS) is software that helps users create and maintain a database.
Popular DBMS tools:
- LibreOffice Base
- MS Access
- MySQL
- Oracle
- SQLite
π 3.2 Basic Concepts of Database
πΉ Data, Field, Record, Table
Term | Description | Example |
---|---|---|
Data | Raw facts or values | “John”, 15, “10th Grade” |
Field | A column in a table representing a data item | Name, Age |
Record | A row in the table that stores one complete set of related data | John, 15, 10th Grade |
Table | A collection of related records | Student table with fields: Name, Age, Class |
πΉ Field Types
Each field in a table must have a data type.
Data Type | Description | Example |
---|---|---|
Text | Alphanumeric characters | “Delhi”, “A101” |
Number | Numeric values | 50, 100.25 |
Date/Time | Dates and times | 01/01/2025 |
Boolean | True or False | Yes/No |
ποΈ 3.3 Creating a Database and Table
πΉ Steps to Create a Database in LibreOffice Base
- Open LibreOffice Base.
- Select Create a new database.
- Choose to register the database and click Finish.
- Save the file with
.odb
extension.
πΉ Creating a Table
You can create a table in two ways:
- Design View: Manually define field names and types.
- Using Wizard: Choose from predefined templates.
πΈ Fields to Define:
- Field Name (e.g., Name, RollNo)
- Field Type (Text, Number, etc.)
- Field Properties (Length, Default value, Required, etc.)
π 3.4 Primary Key
A primary key is a field (or a combination of fields) that uniquely identifies each record in a table.
πΉ Why Primary Key?
- Prevents duplicate records
- Helps link tables in relationships
Example: In a student table, “Roll Number” can be a primary key because itβs unique for each student.
π§ 3.5 Relationships Between Tables
When a database contains multiple related tables, we use relationships to connect them.
πΉ Types of Relationships
- One-to-One (1:1)
Example: Each student has one unique ID card. - One-to-Many (1:N)
Example: One teacher teaches many students. - Many-to-Many (M:N)
Example: Students can enroll in many courses, and courses can have many students.
πΉ Foreign Key
A foreign key is a field in one table that links to the primary key of another table.
π 3.6 Creating Queries
πΉ What is a Query?
A query is a request to retrieve or modify data from one or more tables.
πΉ Types of Queries
Query Type | Function |
---|---|
Select Query | Retrieves data |
Action Query | Inserts, updates, or deletes data |
Parameter Query | Asks user input at runtime |
Cross-tab Query | Summarizes data like pivot tables |
πΉ Creating a Select Query (LibreOffice Base)
- Go to Queries > Create Query in Design View.
- Add a table.
- Select fields to include.
- Set criteria (e.g., “Marks > 60”).
- Click Run (lightning bolt icon).
π§Ύ 3.7 Forms and Reports
πΉ Forms
Forms are used for data entry and editing in a user-friendly interface.
Steps:
- Go to Forms > Create Form Wizard.
- Select the table or query.
- Add desired fields.
- Choose layout and style.
- Save and open the form.
Advantages:
- Easy data entry
- Error-free input
- Guided format
πΉ Reports
Reports are used to present data in printable format.
Steps:
- Go to Reports > Create Report Wizard.
- Choose data source (table/query).
- Arrange fields and group data.
- Customize layout and design.
- Preview and print.
Uses:
- Progress reports
- Sales summaries
- Invoice generation
π§ Summary Table
Feature | Purpose | Tool in DBMS |
---|---|---|
Tables | Store structured data | Table View |
Primary Key | Uniquely identify records | Table Design |
Relationships | Link related tables | Relationship Window |
Queries | Extract specific data | Query Wizard/Design |
Forms | User-friendly data entry | Form Wizard |
Reports | Printable summaries | Report Wizard |
π Practice Questions
πΈ Short Answer
- Define a database and give two examples.
- What is the difference between a field and a record?
- Explain the purpose of a primary key.
πΈ Long Answer
- Describe how to create a table using Design View.
- Explain different types of relationships in a DBMS.
- Describe the steps to create a form and report in LibreOffice Base.
π― Multiple Choice Questions (MCQs)
- Which of the following is a DBMS?
a) MS Word
b) LibreOffice Base
c) Photoshop
d) Chrome
β Answer: b) - What is used to uniquely identify each record?
a) Foreign Key
b) Row ID
c) Primary Key
d) Header
β Answer: c) - Which data type is used to store numbers?
a) Text
b) Boolean
c) Number
d) Date
β Answer: c) - What is the purpose of a query?
a) Store data
b) Print data
c) Retrieve data
d) Edit layout
β Answer: c) - In a one-to-many relationship, which is true?
a) One record is linked to one record
b) Many records are linked to one
c) One record is linked to many records
d) All records are the same
β Answer: c)
π Real-Life Application Examples
- School: Database of student attendance and marks
- Hospital: Patient medical history system
- Business: Inventory management and billing
- Banking: Account details and transaction history
π§ Conclusion
Databases are essential tools in the modern world for handling and organizing information in a structured way. In this unit, weβve learned how to use DBMS software like LibreOffice Base to create tables, set primary keys, link tables through relationships, generate queries for data analysis, and build forms and reports for user interaction and presentation.
therefore By understanding how to work with a DBMS, youβre not only preparing for examsβyouβre learning a powerful digital skill that will benefit you in almost every field.
Unit 3: Database Management System β Class 10 Computer Applications