Chapter 6: Database Management System (LibreOffice Base)
📌 Chapter 6 – Important Topics:
- Database – Definition, Need, Advantages
- DBMS – Definition, Components
- LibreOffice Base – Introduction
- Key Terms – Table, Field, Record, Entity, Attribute, Primary Key, Foreign Key, Relationship, Query, Form, Report
- Steps to Create a Database
- Creating Tables (Design View, Data Types, Primary Key)
- Defining Relationships
- Creating Forms (Wizard, Design View, Controls, Subforms)
- Creating Queries (Wizard, Design View, Criteria, Computational Fields)
- Creating Reports (Wizard, Static vs Dynamic)
- Advanced Example – Ledger Creation & Voucher Entry Form
- Previous Year Exam Questions (2018–2024)
1. What is a Database?
A database is a collection of related data that is organised so that you can easily view, access, manage and update the data.
Complementary Explanation: Databases are everywhere – your school’s student records, the library catalogue, online shopping websites, even your mobile phone contacts are stored in databases.
Simple Hints: Slow search, risk of losing files, only one person can access at a time, no easy backup.
Database Management System (DBMS)
DBMS is software that enables users to create and maintain a database. It helps in collection, storage, manipulation, retrieval and management of data. Popular DBMS software: LibreOffice Base, MS Access, Oracle, MySQL, SQL Server.
Advantages of DBMS
- Centralised management of data
- Data is portable – can be filtered as needed
- Multiple users can access simultaneously
- Reduced data redundancy
- Timely availability of information
- Helps management take correct decisions
Simple Hints: Saves storage space, avoids inconsistencies (if a student changes class, you update only one place).
Components of DBMS
- Data: Raw facts – e.g., “Ravi”, “15”, “Palakkad”.
- Hardware: Physical devices – computer, hard disk, RAM.
- Software: The DBMS program – LibreOffice Base, etc.
- Users: People who interact with the database – administrators, data entry operators, end users.
Answer: 1. Microsoft Access 2. Oracle Database 3. MySQL 4. LibreOffice Base 5. PostgreSQL (any four).
Hint: Think of software used to create and manage databases.
2. LibreOffice Base
LibreOffice Base is a free and open source DBMS included in the LibreOffice suite. It allows you to create databases, tables, queries, forms, and reports. The default file extension is .odb.
Simple Hints: It is free (FOSS), no license cost, can be installed on any number of computers legally.
3. Important Terms in Database
| Term | Meaning |
|---|---|
| Data | Raw facts – e.g., "Aneesh", 3031, "Male". |
| Table | Collection of rows and columns that stores data about a specific subject (e.g., Student table). |
| Field | A column in a table – stores one type of information (e.g., Student_Name). |
| Record / Tuple | A row in a table – contains all fields about one person/item. |
| Entity | A real‑world object – e.g., Student, Book, Employee. |
| Attribute | Characteristics of an entity – e.g., Name, Date of Birth. |
| Primary Key | A field (or combination) that uniquely identifies each record – e.g., Admission No. |
| Foreign Key | A field in one table that refers to the primary key of another table – creates a link. |
| Relationship | A connection between tables based on common fields. |
| Query | A question asked to the database – retrieves specific data. |
| Form | A graphical interface for easy data entry and editing. |
| Report | A formatted presentation of data for printing or viewing. |
Complementary Explanation: A database can have many tables. Relationships connect them so you can combine information (e.g., show student name and bus fee together).
Simple Hints: Names can be duplicated – two students may have same name. Primary key must be unique.
Answer: Entity: A real‑world object (e.g., 'Student'). Attribute: Property of an entity (e.g., Student's 'Roll No', 'Name').
Hint: Entity is the whole object; attribute is its characteristic.
4. Steps to Create a Database in LibreOffice Base
- Create Blank Database: Open Base → “Create a new database” → Next → Finish → Name and save the file (.odb).
- Create Tables: Use Design View or Wizard.
- Define Relationships: Tools → Relationships.
- Create Forms: For easy data entry.
- Create Queries: To retrieve specific information.
- Create Reports: To present data in printed format.
Complementary Explanation: You don’t have to do all steps in strict order – you can always go back and add more tables or modify forms.
Simple Hints: The form needs a table to store data; you must create the table first or the form will have no place to save.
5. Creating Tables in Design View
Path: In Base main window → Tables → Create Table in Design View.
You specify:
- Field Name: Name of the column (e.g., STUD_ID).
- Field Type: Data type – Text [VARCHAR], Number [NUMERIC], Date [DATE], etc.
- Description: Optional.
- Field Properties: Entry required (Yes/No), Length, Default value, Format example.
Setting Primary Key
Right‑click on the gray box to the left of the field name → Choose “Primary Key”. A key symbol appears.
Saving the Table
Press Ctrl+S → Give a table name (e.g., tblSTUDENT) → OK.



Complementary Explanation: You can also create tables using the Wizard, which gives ready‑made templates (e.g., Employees, Students). Design View gives you full control.
Simple Hints: Text [VARCHAR], because phone numbers are not used in calculations and may have leading zeros or special characters.
6. Data Types in Base
- Text [VARCHAR]: Stores letters, numbers, symbols – no arithmetic. Max length 100 (can be changed).
- Memo [LONGVARCHAR]: Stores large amounts of text – notes, comments, descriptions.
- Number [NUMERIC]: Stores numeric values for calculations – integers, decimals.
- Date [DATE]: Stores date (day, month, year).
- Time [TIME]: Stores time only.
- Date/Time [TIMESTAMP]: Stores both date and time.
- Currency [DECIMAL]: Stores monetary values with fixed decimal places.
- Yes/No [BOOLEAN]: Stores logical values – Yes/No, True/False, On/Off.
Complementary Explanation: The “Length” property for Text fields limits how many characters can be entered – this saves space and prevents errors.
Simple Hints: Number [NUMERIC] – because you may want to calculate average, percentage, etc.
7. Defining Relationships
Path: Tools → Relationships → Add Tables → Select tables → Add → Close.
To create a relationship:
- Drag the primary key field from one table to the corresponding foreign key field in the other table.
- The “Relations” dialog appears – click OK.
- A line connects the tables.
Complementary Explanation: Relationships allow you to create queries that pull data from multiple tables at once – e.g., show student name from tblStudent and fee amount from tblFee.
Simple Hints: By default, the database prevents deletion (referential integrity) – you must delete the fee records first or set “Cascade Delete”.
(a) Report. (b) Queries (c) Form (d) Relationship
Answer: (d) Relationship.
Hint: It is under the Tools menu.
8. Creating Forms
Forms are used for easy data entry and editing. Two methods:
- Use Wizard to Create Form – step‑by‑step, user friendly.
- Create Form in Design View – manual, more control.
Form Wizard Steps
- Select table/query and add fields.
- Add subform (optional).
- Arrange controls (layout).
- Set data entry mode (new data only or display all).
- Apply styles (background, border).
- Set name and finish.
Modifying a Form (Design Mode)
- Right‑click form name → Edit.
- Change labels: Ctrl+click on label → Right‑click → Control → General tab → Label.
- Change font, size, colour: via Properties.
- Align controls: Select multiple → Right‑click → Align.
- Add heading: Use Label tool.
Adding Controls in Design View
- List Box: Shows values from another table/query – user selects one.
- Push Button: Executes an action (Save, Delete, Close, etc.).
- Check Box: For Yes/No fields.
- Option Button (Radio): Mutually exclusive choices.

Complementary Explanation: You can make forms look professional – with titles, colours, and even your company logo.
Simple Hints: Prevents spelling mistakes, ensures consistency, faster data entry.
Answer: 1. Using Form Wizard: Step‑by‑step guided process. 2. In Design View: Manually drag and drop fields for custom layout.
Hint: Wizard is easy; Design View gives full control.
9. Creating Queries
A query is a question asked to the database to retrieve, calculate, or manipulate data. Two methods:
- Query Wizard – simple, guided.
- Query Design View – full control, multiple tables, criteria, calculations.
Query Wizard Steps
- Select table/query and add fields.
- Set sorting order.
- Set search conditions (criteria).
- Select type – Detailed or Summary.
- If Summary, set grouping and grouping conditions.
- Give alias names (optional).
- Name the query and finish.
Query Design View
You can add multiple tables; the join lines appear automatically if relationships are defined.
- Field: Select field from table.
- Alias: Display name for column.
- Table: Automatically filled.
- Sort: Ascending/Descending.
- Visible: Check to show column.
- Function: Sum, Avg, Count, etc. (for summary queries).
- Criterion: Condition to filter records (e.g., "MALE", ">5000", "LIKE 'A%'").
Computational Field
You can create calculated columns, e.g., "tblBUSFEE.QUARTER_FEE" - 500 to show outstanding fee. Give an alias like "Outstanding".


Complementary Explanation: Queries can be saved and reused. They are the most powerful feature of a database – they turn raw data into useful information.
"tblSalary.BASIC_PAY" * 0.4 as "DA". Now whenever you run the query, DA is calculated live.
Simple Hints: A filter is temporary; a query is saved and can include calculations, multiple tables, and can be used as the source for forms/reports.
Answer: Query.
Hint: It asks a question and returns the answer.
10. Creating Reports
Reports present data in a formatted, printable layout. Two types:
- Static Report: Data is fixed at the time of creation – does not change later.
- Dynamic Report: Shows live data – updates when the report is opened.
Report Wizard Steps
- Select table/query and add fields.
- Label fields (give meaningful headings).
- Grouping (optional) – e.g., group by Class.
- Sorting – e.g., by Name.
- Choose layout (columnar, in blocks, etc.) and orientation.
- Set report title and choose Static or Dynamic.
- Finish.


Complementary Explanation: Reports can have headers, footers, page numbers, and even images. They are what managers and clients see.
Simple Hints: For archival purposes – e.g., final audited financial statements that should not change. Also for regulatory submissions.
11. Advanced Example: Ledger Creation and Voucher Entry Forms
The textbook demonstrates creating a complete accounting database in Base:
- Table TBLADD_ACCOUNTS: Stores ledger account names, groups, types.
- Table tbTransactionMaster: Stores all transactions (voucher entries).
- Form frmCreateLedger: To add new accounts – uses text boxes, check boxes, option buttons, push buttons.
- Form frmTransactionMaster: Voucher entry screen – combo boxes to select debit/credit accounts, text boxes for amount, push buttons.
- Queries: Payment Query, Receipt Query – filter by voucher type.
- Reports: Payment Report, Receipt Report.
This shows how LibreOffice Base can be used to build a mini‑accounting system.
Complementary Explanation: This example integrates all the concepts you have learned – it is a capstone project for the chapter.
Simple Hints: To record the purpose of the transaction – essential for audit and understanding later.
📘 Important Exam Questions – Chapter 6 (2018–2024)
(a) Report. (b) Queries (c) Form (d) Relationship
Answer: (d) Relationship.
Answer: Query.
Answer: 1. Microsoft Access 2. Oracle Database 3. MySQL 4. LibreOffice Base 5. PostgreSQL (any four).
Answer: 1. Using Form Wizard: Step‑by‑step guided process. 2. In Design View: Manually drag and drop fields for custom layout.
Answer: 1. Tables 2. Queries 3. Forms 4. Reports 5. Relationships (any four).
Answer: Entity: A real‑world object (e.g., 'Student'). Attribute: Property of an entity (e.g., Student's 'Roll No', 'Name').
അധ്യായം 6: ഡാറ്റാബേസ് മാനേജ്മെന്റ് സിസ്റ്റം (ലിബ്രെ ഓഫീസ് ബേസ്) – മലയാളം
📌 പ്രധാന പാഠഭാഗങ്ങൾ:
- ഡാറ്റാബേസ് – നിർവ്വചനം, ആവശ്യകത, ഗുണങ്ങൾ
- ഡിബിഎംഎസ് – നിർവ്വചനം, ഘടകങ്ങൾ
- ലിബ്രെ ഓഫീസ് ബേസ് – ആമുഖം
- പ്രധാന പദങ്ങൾ – പട്ടിക, ഫീൽഡ്, റെക്കോർഡ്, എന്റിറ്റി, ആട്രിബ്യൂട്ട്, പ്രൈമറി കീ, ഫോറിൻ കീ, ബന്ധം, ക്വറി, ഫോം, റിപ്പോർട്ട്
- ഡാറ്റാബേസ് സൃഷ്ടിക്കാനുള്ള ഘട്ടങ്ങൾ
- പട്ടികകൾ സൃഷ്ടിക്കൽ (ഡിസൈൻ വ്യൂ, ഡാറ്റാ തരങ്ങൾ, പ്രൈമറി കീ)
- ബന്ധങ്ങൾ (റിലേഷൻഷിപ്പ്) നിർവ്വചിക്കൽ
- ഫോമുകൾ സൃഷ്ടിക്കൽ (വിസാർഡ്, ഡിസൈൻ വ്യൂ, കൺട്രോളുകൾ, സബ്ഫോം)
- ക്വറികൾ സൃഷ്ടിക്കൽ (വിസാർഡ്, ഡിസൈൻ വ്യൂ, മാനദണ്ഡങ്ങൾ, കണക്കുകൂട്ടൽ ഫീൽഡുകൾ)
- റിപ്പോർട്ടുകൾ സൃഷ്ടിക്കൽ (വിസാർഡ്, സ്റ്റാറ്റിക് vs ഡൈനാമിക്)
- വിപുല ഉദാഹരണം – ലെഡ്ജർ രൂപീകരണവും വൗച്ചർ എൻട്രി ഫോമും
- മുൻവർഷ പരീക്ഷാ ചോദ്യങ്ങൾ (2018–2024)
🔍 ഈ അധ്യായത്തിലെ എല്ലാ ആശയങ്ങളും ലളിതമായ വിശദീകരണം, രണ്ട് ലൈവ് ഉദാഹരണങ്ങൾ, ഒരു ചിന്താ ചോദ്യം, പരീക്ഷാ പരിശീലനം എന്നിവയോടെ വിശദീകരിച്ചിരിക്കുന്നു. LibreOffice Base പരിശീലിക്കുക.