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.
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 answerHide 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
| Characteristic | Description |
|---|---|
| Subject-Oriented | Organized around major subjects like sales, customers, or products rather than ongoing operations |
| Integrated | Data is collected from multiple, heterogeneous sources and made consistent |
| Time-Variant | Data is stored with time stamps; historical data is maintained for trend analysis |
| Non-Volatile | Once data is entered, it is not updated or deleted; it is stable and permanent |
Architecture / Components
- Data Sources -- Operational databases, external files, legacy systems
- ETL Process (Extract, Transform, Load) -- Data is extracted from sources, cleaned/transformed, and loaded into the warehouse
- Data Warehouse Storage -- Central repository where integrated data is stored
- OLAP (Online Analytical Processing) -- Tools used to analyze multidimensional data
- 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.
2079 · 5 marks
Define the terms data warehousing, data mining, and big data. [5]
2074 · 5 marks
What is BigData? How centralization database is different than the distributed database? [5]
Database
2080 · 5 marks
Define database. What are the benefits of using databases? [5]
Database Management System
2078 · 10 marks
What is database management system? Why database management systems are used. Discuss the database system architecture.[10]
Database System Architectures
2077 · 10 marks
What is database? What are benefits of using storing database system architectures in detail.[10]
Show solved answerHide 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
| Architecture | Data Location | Access Method | Example Use |
|---|---|---|---|
| Centralized | Single server | Network/LAN | Banks, Schools |
| Distributed | Multiple sites | Network | Large enterprises |
| Client-Server | Server | Client requests | Web applications |
| Cloud | Remote servers | Internet | Online 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.
2074 · 10 marks
What is data model? How ER-Model can be used to create conceptual data model? Explain with example.[10]
Database System
2075 · 5 marks
What is database system? How data can be stored using relational model. [5]
0 · 5 marks
What is database system? How data can be stored using relational model. [5]
Make Unit 9 stick
Practice CSC114 with flashcards & quizzes