Database Management Systems: An Overview

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the primary role of a Database Management System (DBMS)?

  • To control the organization, storage, and retrieval of data from a database. (correct)
  • To store data files in a conventional operating system.
  • To bypass security measures and allow unauthorized access to data.
  • To create data redundancy and inconsistency.

In database design, what is meant by the term 'data independence'?

  • A system that is heavily reliant on specific individuals for operation.
  • A high level of redundancy and inconsistency in output.
  • Files developed for specific applications being logically connected.
  • The separation of data and applications, allowing changes to data structures without affecting applications. (correct)

Which of the following is NOT a typical disadvantage of using a conventional file processing system compared to a DBMS?

  • Increased data redundancy.
  • Difficulty in accessing data.
  • Improved data integrity. (correct)
  • Data isolation.

What is the purpose of 'views' in the context of database systems?

<p>To define a virtual table whose contents are defined by a query. (D)</p> Signup and view all the answers

What is the significance of the 'conceptual level' in the three-level architecture of a DBMS?

<p>It hides the complexity of the physical level from the application programmers. (A)</p> Signup and view all the answers

In database terminology, what does 'cardinality' refer to?

<p>The number of records (tuples or rows) at any given instant. (B)</p> Signup and view all the answers

What is the primary characteristic that distinguishes the network model from the hierarchical model?

<p>The network model represents relationships using links that can be viewed as pointers, organized as arbitrary graphs. (B)</p> Signup and view all the answers

Why is normalization important in database design?

<p>It reduces data redundancy and improves data integrity by decomposing tables. (C)</p> Signup and view all the answers

What is the role of a 'foreign key' in a relational database?

<p>To link two tables together by referencing the primary key of another table. (B)</p> Signup and view all the answers

Which of the following is NOT a key factor determining database performance?

<p>Complexity of the data model. (A)</p> Signup and view all the answers

Which database user is responsible for requirement analysis?

<p>System Analyst. (C)</p> Signup and view all the answers

How does a DBMS ensure the safety of stored information?

<p>By providing security measures against system crashes and unauthorized access. (C)</p> Signup and view all the answers

What is the role of a 'macro' in database systems?

<p>To automate database tasks, such as validating data. (B)</p> Signup and view all the answers

At which level of database abstraction is the physical layout of the data described?

<p>Internal Level. (C)</p> Signup and view all the answers

What is the term for the logical data structure requirement of an individual database user?

<p>External logical organization. (C)</p> Signup and view all the answers

The main goal of a DBMS is:

<p>To be efficient and convenient to use. (A)</p> Signup and view all the answers

Which of the following refers to the level of database performance when the number of users or transactions increases?

<p>Scalability. (A)</p> Signup and view all the answers

In database systems, what is the primary function of a 'query'?

<p>To retrieve and display data from a database. (C)</p> Signup and view all the answers

What is the role of the Database Administrator (DBA) in an organization?

<p>To design and implement security measures. (A)</p> Signup and view all the answers

In relational databases, what is the purpose of 'referential integrity'?

<p>To make sure that relationships between tables remain consistent when data is modified or deleted. (A)</p> Signup and view all the answers

What is the primary purpose of the 'internal level' of abstraction in a database management system?

<p>Describing how data is physically stored on storage devices. (D)</p> Signup and view all the answers

Which of the following is a responsibility of the Database Designer?

<p>Identifying the data to be stored. (C)</p> Signup and view all the answers

In database terminology, what is a 'tuple'?

<p>A row in a table. (D)</p> Signup and view all the answers

How do relational databases ensure data integrity?

<p>By using common fields to match rows across tables. (D)</p> Signup and view all the answers

What is the main difference between the hierarchical and network database models?

<p>The network model allows a record to have multiple parent records, while the hierarchical model restricts records to a single parent. (A)</p> Signup and view all the answers

What is the significance of 'data redundancy' in the context of file processing systems?

<p>It means that the same data is stored multiple times in different files. (A)</p> Signup and view all the answers

Which of the following tasks is typically performed by the database designer?

<p>Analysing and designing the structure of the database. (D)</p> Signup and view all the answers

What is the purpose of 'modules' in a database system?

<p>To store reusable programming code, such as forms and reports. (C)</p> Signup and view all the answers

Which database model stores data as collections of records, relationships among which are shown as links?

<p>The network model. (B)</p> Signup and view all the answers

What is the primary advantage of an 'extensible' database?

<p>Seamless implementation of changes. (D)</p> Signup and view all the answers

Which of the following is NOT a typical function of a Database Administrator (DBA)?

<p>End user training. (A)</p> Signup and view all the answers

Which of the following best describes the role of 'End Users' in the context of a database management system?

<p>Accessing and utilizing data for decision-making. (D)</p> Signup and view all the answers

Within three-level of abstraction, what is the function of the Data Description Language (DDL)?

<p>To define the conceptual schema and implemented by the DBA. (D)</p> Signup and view all the answers

What is a 'Data File'?

<p>A file where the details about the transactions are stored. (B)</p> Signup and view all the answers

Data in the network model is viewed as:

<p>A graph. (C)</p> Signup and view all the answers

Data in the hierarchical model is viewed as:

<p>A tree. (D)</p> Signup and view all the answers

What is a primary key?

<p>A column or set of columns whose value uniquely identify an instance in a table. (B)</p> Signup and view all the answers

Flashcards

What is a Data File?

A file where details about transactions are stored.

What are Fields/Attributes?

Column headings that describe the details collected in a table.

What are Records/Tuples?

The actual data collected under specific fields in a table.

What is the degree of a table?

Term for the number of fields (columns) in a database table.

Signup and view all the flashcards

What is the Cardinality?

Number of records (rows) in a database table at a given time.

Signup and view all the flashcards

What is a file processing system?

Permanent records are stored in files and different application programs extract and add records to appropriate files.

Signup and view all the flashcards

What is a DBMS?

Collection of interrelated data and programs controlling data organization, storage, and retrieval.

Signup and view all the flashcards

What are the main elements of a database system?

Database, tables, queries, views, stored procedures, forms, reports, macros, modules, relationships.

Signup and view all the flashcards

What are the three levels of data abstraction?

Levels of abstraction: Internal, Conceptual, and External.

Signup and view all the flashcards

What is the internal level of abstraction?

Describes the physical storage structure and access methods of the database.

Signup and view all the flashcards

What is the conceptual level of abstraction?

Describes the structure of the whole database for a community of users.

Signup and view all the flashcards

What is the external level of abstraction?

Multiple views for various user groups, defining which parts of the database each user can access.

Signup and view all the flashcards

What is the Relational Model?

Uses tables to represent data and relationships among data.

Signup and view all the flashcards

What is the Network Model?

Represented by collections of records, with relationships as links (pointers).

Signup and view all the flashcards

What is the Hierarchical Model?

Records organized as collections of trees.

Signup and view all the flashcards

What are Relational Databases?

Method of storing data in different tables as per requirements, related to each other.

Signup and view all the flashcards

What is Normalization?

Decomposing attributes into smaller, manageable tables and linking them using common fields.

Signup and view all the flashcards

What is RDBMS?

It manages relational databases.

Signup and view all the flashcards

What is a Key?

Used to identify unique instances in a table or set relationships between tables.

Signup and view all the flashcards

What is a Primary Key?

Column/set of columns with unique values to identify an instance in a table.

Signup and view all the flashcards

What is a Foreign Key?

Column/set of columns that matches the primary key of another table.

Signup and view all the flashcards

What is referential integrity?

Avoids deleting or modifying data.

Signup and view all the flashcards

What is Scalability?

Level of database performance as users/transactions increase.

Signup and view all the flashcards

What is Extensibility?

Enables adding tables, creating views, and changing business rules.

Signup and view all the flashcards

What is database Security?

Securing data by preventing unauthorized access through views and permissions.

Signup and view all the flashcards

Who are DataBase Users?

Database Designer, Database Administrator, System Analyst, Application Programmers, End/Domain Users.

Signup and view all the flashcards

What is a Database Designer?

Tasked with analyzing data needs and ensuring data can be stored effectively.

Signup and view all the flashcards

Who is a Database Administrator?

Caretaker of the database, in charge of maintenance and security.

Signup and view all the flashcards

Who are the Systems Analysts?

They design the system.

Signup and view all the flashcards

Who are Application Programmers?

Transforms designs into actual source code.

Signup and view all the flashcards

Who are the End Users?

Those who directly get needed values.

Signup and view all the flashcards

Study Notes

Overview of Database Management System

  • A database is a critical component in any automated or computer-based information system.
  • Effective database design requires consideration of every aspect.

Topics Covered

  • Legacy systems using conventional file management.
  • Problems with file management.
  • Various data models.
  • Database evolution through DBMS.
  • Database users.
  • Advantages and disadvantages of file organizations.
  • RDBMS concepts and keys.
  • Factors impacting database performance.

Keywords

  • Database
  • Conventional Data Processing System
  • Data Independence
  • Levels of Abstraction
  • Data Models (Network, Hierarchical, Relational)
  • DBMS
  • RDBMS
  • Keys
  • Database Performance
  • Database Users

Introduction

  • Cycle time for information retrieval can be reduced.
  • Information can be stored without deterioration over time.
  • A small workforce can be employed for updating information.
  • Easy storage of voluminous information centralized.
  • Data redundancy can be minimized.
  • The system can be made person independent.

Data File Basics

  • Data File indicates a file where transaction details or raw facts about an activity are stored.
  • Headings for items collected are Fields, Attributes, or Column Names.
  • Actual details collected are Records, Tuples, or Rows.
  • The entire structure is a Table or Relation or a Data File.
  • The number of fields is the degree of the table.
  • The number of records is the cardinality of the table.

Conventional File Management/Processing System

  • Before DBMS, organizations stored information using file processing systems.
  • Permanent records are stored in files.
  • Application programs extract and add records.

Disadvantages of File Processing System

  • Data redundancy and inconsistency
  • Difficulty in accessing data
  • Data isolation
  • Integrity problems
  • Atomicity problems
  • Concurrent-access anomalies
  • Security problems

Problems with Conventional File Management

  • Files for applications have no logical data independence.
  • High redundancy and inconsistencies in output.
  • Limited abstraction levels.
  • Weak integrity and security.
  • Lacks simplicity.
  • High development and maintenance costs.
  • Complex information retrieval.
  • Cannot meet instantaneous management information needs.
  • Limited interfacing facilities.

Database Management System (DBMS)

  • DBMS comprises interrelated data and programs for managing data organization, storage, and retrieval.
  • DBMS adds, modifies, and extracts data.
  • DBMS accepts data requests from clients and sends data back.
  • The primary goal of DBMS is to be convenient and efficient.
  • The database system ensures the safety of stored information, even after system crashes or unauthorized access attempts.

Main Elements of Database System

  • Database: Collection of related tables
  • Tables: Collection of related records
  • Queries: Instructions that retrieve and display data
  • View: Virtual table defined by a query
  • Stored procedure: Set of pre-compiled query statements
  • Forms: Present data from a table or query
  • Reports: Formatted display with header, body, and footer
  • Macros: Automate database tasks
  • Modules: Container of any programming code in a database
  • Relationship: Association between two tables

Data Processing Tasks

  • Recording
  • Storing
  • Classifying
  • Sorting
  • Retrieving
  • Querying
  • Generating Reports
  • Communicating

Three Levels of Abstraction

  • Database organization has three levels: internal, conceptual, and external.

The Internal Level of Abstraction

  • Physical organization comprises data, storage, and accessing techniques.
  • Storage devices, blocks, buffers, buckets, tracks, sectors, cylinders, pointers, and addressing methods are included.
  • Hashing, indexing, and B-Trees are also included.
  • Physical layout can be isolated so modifications do not affect the logical structure.
  • It leads to physical data independence.
  • Physical organization is described by physical description languages and known as the internal level.

Conceptual Level of Abstraction

  • The global or logical organization describes the entire database system, including entities, record types, data types, relationships, constraints, and controls.
  • It is the conceptual representation of the logical database organization.
  • The conceptual level hides physical complexity from application Programmers.
  • Conceptual views implemented via conceptual schemas (Data Description Languages).
  • Tasks include designing, implementing authorization, relationships and setting data integrity controls.
  • Database administrators are responsible for designing, implementing, and maintaining the global logical organization.

External Level of Abstraction

  • The database is a centralized storage for diverse information needs across different organizational levels.
  • Users, whether domain specialists or application programmers, require specific data so their logical data structure is called external logical organization.
  • The view the user has is called external views.
  • DBMS offers multiple data views, allowing customization.
  • External views are embedded via subschemas.
  • The DBA (database administrator) maintains the database resource.

Data Models

  • Data Models enable the manner in which data is stored and organized within a database system

Relational Model

  • Collection of tables to represent data and relationships.
  • Each table features multiple columns, each with a unique name.
  • Relational databases don't link records physically.
  • Tables use a common field to match rows, no pointers or links.

Network Model

  • Data are represented by collections of records.
  • Relationships among data are represented by links or pointers.
  • Records are organized as arbitrary graphs.

Hierarchical Model

  • The hierarchical model shares similarity with the network model
  • Data, records, and links reflect data relationship.
  • Records are structured as collections of trees, not arbitrary graphs.

Relational Databases

  • Stores data in different tables.
  • Tables are related to provide information.
  • Suited for large applications and ad-hoc queries
  • Normalization decomposes attributes into manageable tables.
  • Links them using common fields.
  • A Relational DataBase Management System (RDBMS) handles relational data.
  • RDBMS aids in creating, updating, and administering relational databases via query statements from users or applications.

Keys in RDBMS

  • A key identifies unique instances or sets table relationships.
  • It can be a single column or a set of columns.

Types of Keys in RDBMS

  • Primary Key
  • Foreign Key
  • Composite Key
  • Candidate Key
  • Primary Key: A column or set of columns with unique values that identify an instance.
  • Restrictions: One primary key, no NULL values

Foreign Key

  • Links two tables in an RDBMS.
  • It matches the primary key value of another table, ensuring the values are listed in the related primary key column to maintain a relationship.
  • Foreign keys maintain referential integrity.
  • Referential integrity specifies automated column validation against the referenced table.
  • Preserves the defined table relationship when data is deleted, modified, or inserted.

Factors Determining Database Performance

  • Maintainability affects performance.
  • Normalizing the database improves maintainability.
  • Splitting data into Customer and Transaction tables.
  • Adding rules would be more efficient.
  • Reduces the time needed to backup and restore.

Availability

  • Availability of the database hinges on server uptime and data accessibility.
  • Views on tables enables readily availability.
  • A well-normalized database minimizes update implementation time, reducing downtime.
  • The backup and restore component safeguards critical data on database servers and backs up and restores data across system problems.

Scalability

  • Normalization boosts Database Scalability.
  • Scalability reflects database performance amid rising users or transactions.
  • A scalable database promptly responds to user demands without delay.

Extensibility

  • Normalized databases enable adding tables, creating views, and modifying business rules.
  • Makes the database extensible.
  • Enables implementation of changes and enhancements with minimum effort.
  • Ensures minimal disruption to database structure.

Security

  • Effective design secures data and prevents unauthorized access.
  • Database design enforces views, grants, and revokes permissions.
  • Most DBMS provides security via protection from accidental destruction.
  • Reconstruction of damaged data.
  • Tamperproof and authorization subsystems.
  • And monitoring and auditing subsystems.

DataBase Users

  • Database Designer
  • Database Administrator
  • System Analyst and Application Programmers
  • End/Domain Users

Database Designer

  • In Computer Based Information Systems (CBIS), conducting data needs analysis in the organization is essential.
  • The Database Designer identifies stored data, storage strategies, and overall structure design.
  • In most cases, job function is done by the DataBase Administrator.

Database Administrator (DBA)

  • A database administrator maintains the database environment.
  • In large organizations, DBAs are assisted by groups of professionals.
  • Maintain and manage database structure.
  • The DBA has global view of the entire database.
  • The DBA is expected to possess complete technical knowledge.
  • The DBA is expected to have knowledge of the organization structure, economics, stakeholders, and their requirements.

Job responsibilities of DBA

  • Access Authorization
  • Modification
  • Monitoring the usage
  • Coordination among different users
  • Performance tuning
  • Planning security systems
  • Applying integrity checks

Systems Analyst Responsibilities

  • They study requirements and designs.
  • Application Programmers transform designs.
  • Reduce implementation time and programming effort.
  • Coordination between systems analyst and DBA ensures utilization of DBMS capabilities.

End Users

  • Casual Users navigate with easy-to-use console to extract data.
  • Domain Users include bank terminals operators, Data Entry operators, Sales Managers, Accountants, etc
  • Sophisticated End Users include Engineers, Technicians, Analysts, Designers, and Students.

Summary

  • Databases are essential for any Computer Based Information System.
  • Information stored digitally is a file.
  • Business transaction details stored for future retrieval are Data Files.
  • Data collection and storage in matrix form.
  • Columns are fields, rows are records.
  • Related tables are a database.
  • Programs supervise data flow for Database Management Systems.
  • Relational model deconstructs transaction details into smaller tables.
  • Relational database tables map with keys.
  • Key identifying instances or sets relations.
  • The Network and Hierarchical Models can be used as data structures.
  • Data is represented as links or pointers in the Network Model.
  • Hierarchical model organizes records as trees versus arbitrary graphs.
  • A well-designed database helps maintainability, availability, scalability, extensibility, and security aspects of information system.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser