9 Fundamentals Of Database

Introduction to Information Technology · Unit 9 · 4 hrs

Fundamentals of Database

Exam-focused notes for Fundamentals of Database (Introduction to Information Technology, CSC114): what the TU syllabus asks and how it has actually been tested, with 9 solved past questions from this unit.

Fundamentals of Database in short

This chapter introduces databases and the systems that manage them: how data is modelled, why a dedicated management system is used, how such systems are structured, and how a good database design avoids redundant data.

Fundamentals of Database: notes

Introduction

A database is a collection of interrelated information used for different aspects of a real life problem; the telephone directory is a familiar example of a database.

Database

Two data models describe how a database's structure is designed at the physical, logical and view level. The E-R model (Entity Relationship model) represents a collection of objects called entities and the relationships between them, describing data as entity sets, relationship sets and attributes; it is easier to use for understanding the relationships between entities and it describes mapping cardinalities. The relational model represents a collection of tables and the relations between them, describing data in terms of domains, attributes and tuples; compared with the E-R model it is less easy to derive relations between tables from it, and it does not describe mapping cardinalities.

Database System

Database systems are applied across many domains. In telecom, a database keeps track of calls made, network usage and customer details, work that would be hard to maintain without a data system given how often it updates. In banking, a database stores customer information and tracks day to day credit and debit transactions. In sales, a database stores customer information, product lists, purchase information and production information. In airlines, reservation information is stored in a database along with flight schedules. Universities frequently use database systems to store and retrieve course details, exam details, staff details, fee details, and records of students, courses and marks. Online shopping stores such as Amazon or Flipkart use a database management system to store product information, buyer addresses and credit details, and to generate relevant product lists based on customer queries.

What this unit covers

  • Introduction
  • Database
  • Database System
  • Database Management System
  • Database System Architectures
  • Database Applications
  • Introduction to Data Warehousing, Data mining, and BigData

Introduction to Data Warehousing, Data mining, and BigData

2081 · 5 marks

What is data warehouse? Explain. [5]

Show solved answer

Data Warehouse

Definition

A data warehouse is a large, centralized repository of data that is collected, integrated, and stored from multiple sources within an organization for the purpose of reporting, analysis, and decision-making. It is designed to support management's decision-making process by providing a consolidated view of organizational data over time.


Explanation

A data warehouse stores historical and current data from various operational systems (such as sales, finance, HR) in one unified place. Unlike regular databases used for day-to-day transactions, a data warehouse is optimized for querying and analysis.


Key Characteristics of a Data Warehouse

CharacteristicDescription
Subject-OrientedOrganized around major subjects like sales, customers, or products rather than ongoing operations
IntegratedData is collected from multiple, heterogeneous sources and made consistent
Time-VariantData is stored with time stamps; historical data is maintained for trend analysis
Non-VolatileOnce data is entered, it is not updated or deleted; it is stable and permanent

Architecture / Components

  1. Data Sources -- Operational databases, external files, legacy systems
  2. ETL Process (Extract, Transform, Load) -- Data is extracted from sources, cleaned/transformed, and loaded into the warehouse
  3. Data Warehouse Storage -- Central repository where integrated data is stored
  4. OLAP (Online Analytical Processing) -- Tools used to analyze multidimensional data
  5. Front-End Tools -- Reporting tools, dashboards, and query tools used by end users

Advantages

  • Supports better decision-making by providing consistent and accurate data
  • Provides fast query performance since it is optimized for reading
  • Maintains historical records for trend and pattern analysis
  • Integrates data from multiple sources into a single view

Example

A retail company collects sales data from all its branches. This data is loaded into a data warehouse every night. Managers can then query the warehouse to find out which products sold the most over the last 5 years, helping them make informed business decisions.


Summary

A data warehouse is a subject-oriented, integrated, time-variant, and non-volatile collection of data that supports organizational decision-making by providing a unified and historical view of business data.

Open this answer on its own page →

2079 · 5 marks

Define the terms data warehousing, data mining, and big data. [5]

A data warehouse is a collection of data from various sources stored under a common schema. It stores both current and historical data in one single place and is primarily used for analysis, reporting, and data mining purposes. Key characteristics: - It is separated from the operational database ...

Open this answer on its own page →

2074 · 5 marks

What is BigData? How centralization database is different than the distributed database? [5]

--- Big Data refers to extremely large volumes of data that cannot be processed or managed by traditional database management systems due to their massive size, high speed of generation, and variety of formats. Big Data is commonly characterized by the 3 Vs: Property Description -----------------...

Open this answer on its own page →

Database

2080 · 5 marks

Define database. What are the benefits of using databases? [5]

A database is an organized collection of structured data or information stored electronically in a computer system. It allows data to be easily accessed, managed, updated, and retrieved. A Database Management System (DBMS) is a system software for creating and managing databases. The DBMS provide...

Open this answer on its own page →

Database Management System

2078 · 10 marks

What is database management system? Why database management systems are used. Discuss the database system architecture.[10]

A Database Management System (DBMS) is a collection of interrelated data and a set of programs to access and manage that data. It is software that acts as an interface between the user and the database, allowing users to create, read, update, and delete data in an organized and efficient manner. ...

Open this answer on its own page →

Database System Architectures

2077 · 10 marks

What is database? What are benefits of using storing database system architectures in detail.[10]

Show solved answer

Database and Database System Architectures


Part 1: What is a Database? (2 marks)

A database is an organized collection of related data that is stored and managed so that it can be easily accessed, retrieved, updated, and managed. It eliminates data redundancy and provides a structured way to store large amounts of information.

Data is information when dealing with a machine, and databases are used in domains such as banking, airlines, universities, telecom, and sales, all of which require organized, structured storage of large volumes of data.

A Database Management System (DBMS) is the software that manages and controls access to the database.


Part 2: Benefits of Using a Database System (3 marks)

The following are the key benefits of using a DBMS:

1. Data Security

  • DBMS has an enhanced security mechanism.
  • The Database Administrator (DBA) can define different security levels so that all users are not allowed to access all parts of the database.
  • This protects sensitive data from unauthorized access.

2. Data Integrity

  • Data integrity is easily maintained in a database, which is difficult to achieve in a traditional file system.
  • Integrity constraints ensure that only valid and consistent data is stored.

3. Backup and Recovery

  • DBMS maintains automatic backups of the data.
  • After a failure has occurred, the system is recovered to a consistent state from the backup.
  • This prevents data loss due to system crashes or failures.

4. Reduced Data Redundancy

  • Unlike file systems where the same data may be stored in multiple files, a DBMS stores data in a centralized manner, reducing duplication.

5. Easy Data Access and Sharing

  • Multiple users can access the same database simultaneously.
  • Data can be shared across departments and applications efficiently.

Part 3: Database System Architectures (5 marks)

The following are the main types of database system architectures:


1. Centralized Database System

Definition: A centralized database system is a system which stores the entire information as well as the whole database in one main server, and all other computers access the data from that server computer.

Key Features:

  • Works on a client-server model.
  • There is one central computer called the database server that stores all data and files.
  • The server is responsible for processing the data.
  • All client machines in the network access data from this single server.

Diagram:

[Client 1]  \
[Client 2]  ---->  [Central Database Server]
[Client 3]  /

Examples:

  • Database systems used by schools, colleges, and banks are centralized database systems.

Advantages:

  • Easy to manage and maintain since all data is in one place.
  • Strong data security and access control.
  • Data consistency is easy to maintain.

Disadvantages:

  • If the central server fails, the entire system goes down (single point of failure).
  • Performance may degrade as the number of clients increases.

2. Distributed Database System

Definition: A distributed database system stores data across multiple physical locations (different computers or sites), but appears to the user as a single unified database.

Key Features:

  • Data is distributed across multiple nodes/sites.
  • Nodes are connected via a network.
  • Each site can process local queries independently.

Types:

  • Homogeneous: All sites use the same DBMS software.
  • Heterogeneous: Different sites may use different DBMS software.

Advantages:

  • No single point of failure -- system continues even if one node fails.
  • Faster local data access.
  • Scalable and reliable.

Disadvantages:

  • Complex to design and manage.
  • Data synchronization across nodes is challenging.

3. Client-Server Architecture

Definition: In a client-server architecture, the database server provides database services and the client machines request those services.

Key Features:

  • The server handles data storage, processing, and security.
  • Clients send requests (queries) to the server and receive results.
  • This is the underlying model on which the centralized database system is built.
[Client: Sends Query]  <----->  [Server: Processes & Returns Result]

Advantages:

  • Centralized control of data.
  • Clients do not need to store data locally.
  • Easy to update and maintain data at the server level.

4. Cloud Database System

Definition: A cloud database is a database that runs on a cloud computing platform and is accessed over the internet.

Key Features:

  • Data is stored on remote servers managed by cloud providers (e.g., AWS, Google Cloud).
  • Users access the database via the internet.
  • Highly scalable and available on demand.

Advantages:

  • No need for physical hardware maintenance.
  • Accessible from anywhere.
  • Cost-effective (pay-as-you-use model).

Summary Table

ArchitectureData LocationAccess MethodExample Use
CentralizedSingle serverNetwork/LANBanks, Schools
DistributedMultiple sitesNetworkLarge enterprises
Client-ServerServerClient requestsWeb applications
CloudRemote serversInternetOnline services

Conclusion

A database is a fundamental component of modern information systems. The choice of database system architecture depends on the scale, security requirements, and availability needs of the organization. Centralized database systems are widely used in schools, colleges, and banks due to their simplicity and ease of management.

Open this answer on its own page →

2074 · 10 marks

What is data model? How ER-Model can be used to create conceptual data model? Explain with example.[10]

A data model describes a way to design a database at the physical, logical, and view level. It provides a structured way to represent data, the relationships among data, and the constraints that govern the data. A data model serves as a blueprint for how a database is constructed and organized. T...

Open this answer on its own page →

Database System

2075 · 5 marks

What is database system? How data can be stored using relational model. [5]

A database system (also called a Database Management System - DBMS) is a system that manages a database, which is a collection of interrelated information used for different aspects of real-life problems. As per the notes: "Database is a collection of interrelated information which is used for di...

Open this answer on its own page →

0 · 5 marks

What is database system? How data can be stored using relational model. [5]

A database is a collection of interrelated information which is used for different aspects of real life problems. A database system (also called a Database Management System - DBMS) is a software system that manages, stores, retrieves, and organizes this data efficiently. Example: A telephone dir...

Open this answer on its own page →