SMA 190 • UNIT 6 • General Sciences

Database Management Systems

Topics covered: MS ACCESS, WORKING WITH ACCESS, WORKING WITH TABLES, RELATIONSHIPS, WORKING WITH QUERIES, FORMS, REPORTS, Chapter Review Exercise

Looking for SMA 190 Database Management Systems PDF material?
Generate printable PDF revision notes, past examination papers with marking rubrics, and formula cheat sheets.
Download Course PDF Pack (.zip)

Syllabus Study Notes (Core Overview)

Free Overview Preview

1. Concept and Use Case

Formal Definition of Database and DBMS

A database is defined as an organized collection of related information structured systematically to serve a specific organizational purpose.

A Database Management System (DBMS) is specialized application software that enables users to define, construct, manipulate, maintain, and share databases across varied user applications. A DBMS allows structured records to be entered into the system and retrieved in specific formats. Standard examples of relational DBMS software cited in the discipline include Microsoft Access, Paradox, dBASE, FoxPro, and Sybase.

Use Cases and Institutional Applications

In organizational computing, databases replace disparate flat files and manual ledgers across multiple functional sectors:
- Educational Systems: Managing student admissions, personal bio-data, course registrations, fee ledgers, grading sheets, and institutional class schedules.
- Commercial and Retail Environments: Tracking inventory stock levels, customer sales projections, point-of-sale transactions, sales quotas, and market share trends.
- Legal and Public Records: Maintaining client legal histories, judicial case dockets, court appearance schedules, and national registry records.
- Financial and Accounting Systems: Processing general ledgers, payroll calculations, banking transactions, portfolio forecasting, and fiscal year-end financial statements.

Architectural Advantages of Relational DBMS

Deploying a relational database management system delivers key administrative benefits:
1. Rapid Data Retrieval: Powerful indexing and structured query engines allow users to search and locate specific records in large datasets in fractions of a second.
2. Data Consistency and Integrity: Centralized data storage minimizes redundant data entry, preventing conflicting records and ensuring accurate, synchronized updates.
3. Automated Analysis and Reporting: Data can be dynamically aggregated, filtered, sorted, and presented in formal print-ready summary reports.
4. Data Security and Access Governance: Granular security mechanisms protect confidential data from unauthorized modifications and exposure through user authentication and permission levels.
5. Multi-Faceted Access Modes: Information is accessed simultaneously via spreadsheet-like datasheets, customized graphical data entry forms, targeted queries, or consolidated reports.


2. Data, Syntax, and Core Concepts

The Relational Data Hierarchy

Data in Microsoft Access is organized according to a strict relational hierarchy:
- Field: The smallest named unit of meaningful data representing a single attribute of a subject (e.g., StudentName, DateOfBirth, FeeAmount). Fields form the vertical columns of a table.
- Record: A collection of related fields that completely describe a single entity (e.g., all personal and financial fields belonging to one student). Records form the horizontal rows of a table.
- Table: A two-dimensional grid composed of rows (records) and columns (fields) storing data on a single thematic subject.
- Database File: The master container holding all interrelated tables, queries, forms, reports, macros, and modules within an integrated file system.

Database Objects in Microsoft Access

Microsoft Access structures application development around six foundational database objects:

Object Primary Function Operational Role
Tables Core Data Storage Stores foundational records in columns (fields) and rows (records).
Queries Information Retrieval & Modification Performs database searches, filtering, calculations, batch updates, and deletions based on specified criteria.
Forms User Interface & Data Entry Displays data record-by-record, providing a clean interface for data input, editing, and navigation.
Reports Data Presentation & Output Formats, summarizes, groups, and calculates data for printing and distribution.
Macros Task Automation Executes automated sequences of routine actions without manual coding.
Modules Advanced Programmability Houses procedural functions and subroutines written in Access Basic / VBA for complex logic.

Field Properties and Data Types

When constructing a table in Design View, each field requires a designated Data Type that governs the classification, storage capacity, and validation rules for input data:

  • Text (Default): Stores alphanumeric characters and numbers that do not require arithmetic calculations (e.g., names, addresses, phone numbers, postal codes). The default field size is 50 characters, accommodating up to 255 characters.
  • Memo: Stores long blocks of alphanumeric text exceeding 255 characters, accommodating up to 64,000 characters for descriptive notes, remarks, and summaries.
  • Number: Stores numerical values utilized in mathematical calculations (integers, single, double), excluding monetary figures.
  • Date/Time: Stores calendar dates and clock times for historical and future periods (years 100 through 9999).
  • Currency: Stores financial values formatted with currency symbols and fixed decimal places (preventing rounding errors in monetary arithmetic).
  • AutoNumber: Stores unique, sequential numbers automatically incremented by 1 (or random numbers) assigned by Access whenever a new record is created. AutoNumber fields cannot be manually updated or edited.
  • Yes/No: Stores Boolean values containing exactly one of two states (e.g., True/False, Yes/No, On/Off).
  • OLE Object (Object Linking and Embedding): Binds external binary objects such as Microsoft Word documents, Excel spreadsheets, audio clips, and graphical images (e.g., passport photographs of students).

Primary Keys and Foreign Keys

Every relational table requires a Primary Key—a field (or combination of fields) that uniquely identifies each individual record. The primary key prevents duplicate entries and preserves entity integrity. When a natural unique key is absent, an AutoNumber field is assigned.

When connecting multiple tables, the primary key of one table is included in another related table as a Foreign Key, establishing relational links.

The Three Forms of Relational Association

Relational databases connect disparate tables using common key fields across three fundamental relationship types:
1. One-to-One (1:1): Each record in Table A matches at most one record in Table B, and each record in Table B matches at most one record in Table A. Used primarily for security partitioning or specialized sub-records.
2. One-to-Many (1:M): A single record in Table A matches multiple records in Table B, but a record in Table B links back to only one matching record in Table A. This is the most common relationship type (e.g., one Course contains many enrolled Students).
3. Many-to-Many (M:N): A record in Table A links to multiple records in Table B, and a record in Table B links to multiple records in Table A (e.g., multiple Students enroll in multiple Courses). In relational design, a many-to-many relationship cannot be linked directly; it requires a third table—known as a Junction Table—that combines the primary keys of both parent tables as foreign keys.


Unlock Complete Study Notes & Exam Traps

The full guide includes formal proofs, worked exemplar calculations, high-yield exam traps, and examiner marking schemes. Continue studying this topic in Mentify Prep Studio.

Verified Examination Problems

3 verified questions in catalog

Question 1 (8 marks)

A cybercafé records each customer session in an Access 2000 table. The raw entries captured are the customer name, the start time, the end time and the charge per hour.

(i) Distinguish between data and information as used in the lecture notes, using the cybercafé entries as your example.

(ii) Explain what is meant by data processing and identify the Access objects (queries, forms, reports) that transform the raw session entries into information for the manager.

(iii) State three advantages of using a computerised database system over paper record-keeping for this cybercafé.

Full Step-by-Step Solution & Marking Rubric Locked
View Solution in Studio →

Question 2 (10 marks)

An Access 2000 database for a supermarket contains two tables:

$$
\begin{aligned} &\text{Customer(CustomerID, CustomerName, Town)} \ &\text{Sale(SaleID, CustomerID, Amount)} \end{aligned}
$$

(i) Identify the primary key of each table and justify your choice.

(ii) Explain the role of CustomerID in the Sale table and state the type of key it represents.

(iii) Describe the relationship that exists between the two tables and state its type (one-to-one, one-to-many or many-to-many).

(iv) Explain why the relationship must be defined before queries combining the two tables are created.

Full Step-by-Step Solution & Marking Rubric Locked
View Solution in Studio →
+ 1 More Verified Exam Questions Available

Access all authentic past questions, interactive AI hint generation, and full marking rubrics in the course studio.

Unlock All Questions in Studio →
Ready to practice this topic interactively?
Generate custom exam variants, chat with the AI course tutor, and solve past papers.
Launch Interactive Study