Loading...

DATABASE ANALYSIS & DESIGN  

LEARNING OUTCOME 3

Schemas in Database Systems: External Schema, Conceptual Schema, and Internal Schema

1. External Schema (View):

2. Conceptual Schema:

3. Internal Schema (Physical Schema):

Evaluation:

3-tier architecture

The 3-tier architecture is a software design pattern commonly used in database applications. It separates the application into three distinct logical tiers:

1. Presentation Tier:

Also known as the UI (User Interface) tier, this layer interacts directly with the user. It presents information, gathers user input, and displays the results of user actions. This tier typically consists of user interfaces like web pages, mobile apps, or desktop applications.

2. Application Tier (Business Logic):

This layer acts as the intermediary between the presentation tier and the data tier. It handles the core application logic, business rules, and processing of user requests. The application tier receives user input from the presentation tier, performs necessary operations on the data using the data tier, and prepares the results to be displayed back to the user. This layer may also involve validation of user input, security checks, and managing application flow.

3. Data Tier:

This layer interacts with the database and manages the storage, retrieval, and manipulation of data. It houses the actual database management system (DBMS) and the database itself. The data tier receives requests from the application tier, executes queries on the database, and returns the requested information or performs data modifications as instructed.

Benefits of 3-Tier Architecture:

Here's an analogy to understand the 3-tier architecture: Imagine a restaurant. The menu (presentation tier) displays the available dishes to the customer (user). The waiter (application tier) receives the customer's order, relays it to the kitchen (data tier), and brings back the prepared food (processed data) to the customer. The kitchen handles the actual food preparation (data manipulation), while the waiter manages the interaction and flow of information.

File organisation and access methods

Traditional database systems don't directly use file organization methods as they typically store data in a structured format within the database itself. However, the underlying storage mechanisms might employ file organization techniques to optimize data access and storage efficiency. Here's a breakdown of relevant file organization methods and access methods in the context of databases:

File Organization Methods:

Access Methods:

Data storage and retrieval

Data storage and retrieval come in two main flavors: local and cloud-based. Each offers distinct advantages and disadvantages depending on your specific needs. Here's a breakdown to help you decide which solution is best for you:

Local Storage:

Cloud-Based Storage:

Data Abstraction

Data abstraction is a fundamental concept in database systems that focuses on hiding the internal complexities of data storage and manipulation from users and applications. It acts like a veil, shielding users from the nitty-gritty details of how data is physically organized and managed within the database.

Here's a breakdown of data abstraction with examples to illustrate its purpose:

Core Idea:

Imagine a library. The library stores a vast amount of information (books) in a specific way (organized by Dewey Decimal System or alphabetically by author). Librarians understand this internal organization system, but patrons typically don't need to know those details. They simply search the library catalog (an abstraction layer) to find the books they're interested in and retrieve them. Data abstraction in databases works similarly.

Benefits:

Examples of Data Abstraction:

The 3 Levels of Data Abstraction

Data abstraction in database systems is a crucial concept that separates the logical view of data from its physical storage details. It provides a layered approach, offering different levels of detail for users and applications depending on their needs. Here's an in-depth exploration of the three key levels of data abstraction:

1. External Level (View Level):

2. Conceptual Level (Logical Level):

3. Internal Level (Physical Level):

Advantages of Data Abstraction

Data abstraction offers several significant advantages within a Database Management System (DBMS). Here's a breakdown of the key benefits:

1. Simplified User Interaction:

2. Improved Data Independence:

3. Enhanced Security:

4. Increased Maintainability:

5. Flexibility and Reusability:

Abstract Data Types

In computer science, an abstract data type (ADT) is a fundamental concept that focuses on the what rather than the how of data. It acts as a blueprint or a contract that defines the data type's behavior and the operations that can be performed on it, without revealing the specific implementation details of how the data is actually stored or manipulated in memory.

Core Idea:

Imagine a toolbox. The toolbox doesn't tell you how the tools are physically made (metal, plastic, etc.), but it tells you what tools are there (hammer, screwdriver, etc.) and what their functionalities are (hammering nails, tightening screws). Similarly, an ADT specifies the data type (like a hammer) and the operations that can be performed on that data (like hammering), without going into the details of how the hammer itself is built.

Benefits of ADTs:

Components of an ADT:

Examples of ADTs:

The Database Lifecycle (DBLC)

It outlines the different stages a database goes through, from its initial conception to its eventual retirement. Here's a breakdown of the typical stages involved:

1. Database Planning and Analysis (Requirement Gathering):

2. Database Design:

3. Database Implementation:

4. Database Operation and Maintenance:

5. Database Evolution and Retirement:

Digital Archives Quiz

1 of 20

    Quiz Score

    Percentage: 0%

    Answered Questions: 0

    Correct Answers: 0

    Faults: