Databases: Data, DBMS, and Data Models

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which aspect primarily highlights the role of data within an organization?

  • Its application in developing new software.
  • Its necessity for enabling network infrastructure.
  • Its value as a critical resource that needs managing. (correct)
  • Its use in creating complex algorithms.

Why is unprocessed data generally considered 'useless'?

  • It consumes excessive storage space.
  • It's incompatible with modern systems.
  • It does not convey meaning or context on its own. (correct)
  • It's too complex for analysis.

What critical deficiency results from a lack of adequate data?

  • Excessive operational costs.
  • Reduced system processing speed.
  • Inadequate information, leading to poorly informed decisions. (correct)
  • Increased vulnerability to cyber-attacks.

What primary focus defines data management as a discipline?

<p>Ensuring the generation, storage, and retrieval of data. (D)</p> Signup and view all the answers

In the context of file systems, what does 'data dependence' primarily refer to?

<p>The need to modify data access programs when data characteristics change. (A)</p> Signup and view all the answers

Which outcome is most directly associated with 'structural dependence' in file systems?

<p>Need to modify related programs when file structure changes. (D)</p> Signup and view all the answers

What is the greatest risk presented by uncontrolled data redundancy?

<p>Data anomalies arising from conflicting versions of the same data. (B)</p> Signup and view all the answers

What are the key differences between data and information?

<p><code>Data</code> is raw and unorganized facts, and <code>information</code> is processed to reveal meaning. (C)</p> Signup and view all the answers

In the context of file systems, what programming language generation is typically associated with extensive programming requirements?

<p>Third-generation language (3GL). (C)</p> Signup and view all the answers

What limitation is primarily associated with organizing data in files according to expected use?

<p>Data isolation, leading to islands of information. (A)</p> Signup and view all the answers

How do database systems improve upon data management compared to traditional file systems?

<p>By eliminating inconsistency, data anomalies, data dependency, and structural dependency problems. (D)</p> Signup and view all the answers

What is the definition of a database system?

<p>Related data that are stored in a single repository. (D)</p> Signup and view all the answers

With a database system, how is data related?

<p>By the structure defined in the database. (C)</p> Signup and view all the answers

What does data independence achieve in the context of databases?

<p>The ability to modify the data's logical or physical structure without altering application programs. (A)</p> Signup and view all the answers

Which component plays a critical role in data independence by storing metadata?

<p>Database catalog or dictionary. (B)</p> Signup and view all the answers

What is the key benefit of minimal data redundancy in a database?

<p>Improved data consistency and integrity. (D)</p> Signup and view all the answers

How do DBMS ensure sharing data remains consistent?

<p>By ensuring that the data remains consistent always. (A)</p> Signup and view all the answers

What technique is commonly used to avoid concurrency problems in database transactions?

<p>Record locking. (B)</p> Signup and view all the answers

What is the role of validation or integrity rules?

<p>They validate data. (D)</p> Signup and view all the answers

What is a primary function of a DBMS regarding security?

<p>Protecting data against accidental or intentional unauthorized use. (C)</p> Signup and view all the answers

What does a DBMS use to provide access control to certain data?

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

What is the role of metadata in a database?

<p>It allows data to be managed and used by applications. (C)</p> Signup and view all the answers

Which of the following is a primary function of a Database Management System (DBMS)?

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

Which task falls under the umbrella of 'Data Storage Management' within a DBMS?

<p>Creating and managing structures for data storage. (A)</p> Signup and view all the answers

What action is performed by the data transformation and presentation function of a DBMS?

<p>Transforming entered data to conform to the data structures. (D)</p> Signup and view all the answers

Which function is related to security, which exists within a DBMS?

<p>Creating a security system. (B)</p> Signup and view all the answers

What is the primary purpose of 'Multi-user access control' in a DBMS?

<p>Allowing safe multiple users. (C)</p> Signup and view all the answers

Which crucial function does a DBMS provide to maintain data safety?

<p>Backup and data recovery. (C)</p> Signup and view all the answers

Which task falls under the umbrella of 'Data Integrity Management' within a DBMS?

<p>Integrity rules to eliminate data integrity problems. (A)</p> Signup and view all the answers

Which term best describes a collection of logical constructs used to represent data structure and relationships within a database?

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

Which category do 'Context Model', 'Key Model', and 'Fully attributed Model' belong in?

<p>Conceptual Models. (B)</p> Signup and view all the answers

Which of the following is an example of relationships available in a Hierarchical Model?

<p>Each parent can have many children - each child has only one parent. (A)</p> Signup and view all the answers

Which model allows each record to have multiple parents?

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

From the perspective of a user, how is data organized in a Relational Database Model?

<p>As a collection of tables. (B)</p> Signup and view all the answers

What are the disadvantages of a Relational Database Model?

<p>Substantial software requirement and simplicity allows untrained access . (B)</p> Signup and view all the answers

Flashcards

What is data?

Raw facts concerning people, places, events, or concepts.

What is information?

Data that has been processed to reveal meaning.

What are file systems?

Traditional systems where data is stored in individual files.

Problems of file systems?

Extensive programming in 3GL, structural dependence, and data redundancy.

Signup and view all the flashcards

Data Dependence

Changes in file's data characteristics requires modification of data access programs

Signup and view all the flashcards

Structural Dependence

Change in file structure requires modification of related programs

Signup and view all the flashcards

Data Redundancy

Different and conflicting versions of same data

Signup and view all the flashcards

What is a database system?

Related data stored in a single repository.

Signup and view all the flashcards

Database Advantages

A database eliminates inconsistency, anomalies, and dependency problems.

Signup and view all the flashcards

Data Independence

The ability to change data structure without affecting application programs.

Signup and view all the flashcards

Sharing of Data

Support multiple concurrent users of the same data.

Signup and view all the flashcards

Database Security

Protecting data against unauthorized use.

Signup and view all the flashcards

What is a database?

A shared, integrated computer structure housing a collection of data.

Signup and view all the flashcards

What is a DBMS?

Software that manages database structure and data access.

Signup and view all the flashcards

Data Dictionary

Stores definitions of data and relationships in a data dictionary.

Signup and view all the flashcards

Data Storage Mgmt

Creates and manages complex structures for data storage.

Signup and view all the flashcards

Data Transformation

Transforms entered data to required structures.

Signup and view all the flashcards

Security Management

Creates and enforces a security system within the database.

Signup and view all the flashcards

Multi-user access

Complex structures allowing multiple-user access to data.

Signup and view all the flashcards

Backup/Recovery Mgmt

Performs backup and data recovery.

Signup and view all the flashcards

Data Integrity Management

Promotes and enforces integrity rules.

Signup and view all the flashcards

Programming interfaces

Access to data via utility programs.

Signup and view all the flashcards

Interfaces for communication

End user access within a computer network.

Signup and view all the flashcards

Database Models

Collection of logical constructs that models a database.

Signup and view all the flashcards

Conceptual Models

Focuses on the logical structure of the data.

Signup and view all the flashcards

Implementation Models

Focuses on how data is represented and stored.

Signup and view all the flashcards

Hierarchical Model

Logically represented by an upside-down tree structure.

Signup and view all the flashcards

Network Model

Each record can have multiple parents.

Signup and view all the flashcards

Relational Model

Data is stored in tables with rows and columns.

Signup and view all the flashcards

eliminated by the database

Data inconsistency, data anomalies, and data redundancy

Signup and view all the flashcards

Database language and application programming interfaces

provides access to the data via utility programs and from programming languages interfaces

Signup and view all the flashcards

Database communication interfaces

provides end-user access to data within a computer network environment.

Signup and view all the flashcards

Collection of logical constructs

Data representation and relationships within the database

Signup and view all the flashcards

Implementation/Physical models

Emphasize on how the data are represented in the database

Signup and view all the flashcards

Study Notes

Learning Objectives

  • Understand data as a resource within an organization.
  • Data, Database, and DBMS should be defined.
  • Understand the motivation and objectives for the database approach.
  • Data independence should be defined.
  • Database transactions, backup, and recovery knowledge is expected.
  • Databases have improved security of data by inter-relating it through a Data Model.
  • Relational, Hierarchical, and Network data models are major ones.

Data

  • Dates refers to raw facts: concerning people, places, events, or other objects/concepts.
  • Data by itself is useless unless it is somehow processed.
  • Data that is processed to reveal meaning becomes information.
  • A lack of data leads to inadequate information and ill-informed decisions.
  • Data represents a valuable corporate resource needing adequate integrity and security controls.
  • Data management generates, stores, and retrieves data properly.

Traditional File Systems

  • Databases are often contrasted to traditional file systems though the latter are now rarely used.
  • Issues with traditional systems included:
    • Requires extensive programming in third-generation language (3GL).
    • Had data and structural dependence and data redundancy.
  • Requests needed a DP specialist to write programs, organizing data according to expected use, and the retriever required 3GL coding.
  • The same data was often stored in many locations, e.g., agent details could be found in both the CUSTOMER and AGENT files.

Problems with Traditional File Systems

  • Data Dependence: Changes in file's data characteristics requires modification of data access programs.
  • The program must tell it what to do and how making file systems cumbersome from programming.
  • Structural Dependence: Changes in file structure requires modification of related programs.
  • Data Redundancy: May have different and conflicting versions of same data, data inconsistency and lack of data integrity.
    • Results of uncontrolled data redundancy can cause Data anomalies via modification, insertion, and deletion.

File Terminology

  • Field: A group of characters with specific meaning.
  • Record: Logically connected fields that describe a person, place, or thing.
  • File: A collection of related records.

Database Systems

  • A database consists of related data stored in a single repository providing advantages over file systems:
  • Eliminating inconsistency, data anomalies, data dependency, and structural dependency problems.
  • Stores data structures, relationships, and access paths.
  • Centralized control of data can mean the data already exists for many applications.
  • Data is no longer related by application programs, but by the structure defined in the database.

Objectives of Database Technology

  • Data Independence
  • Minimal Data Redundancy
  • Increased Data Sharing
  • Improved Data Quality
  • Improved Security of Data
  • Improved Access to Data
  • Reduced Program Maintenance
  • Inter-relate data thru the model

Data Independence

  • It is the property of being able to change the logical or physical structure of data without requiring code changes to application programs that manipulate that data
  • Results in a more complex structure.
  • Data is stored independently of the programs and data descriptions are not embedded in them.
  • The database structure can be changed with no impact on application programs through the database catalog or dictionary (the metadata).

Sharing of Data

  • The DBMS has the ability to support multiple concurrent users of the same data and to ensure that the data remains consistent at all times.
  • Transactions must be made logically serial to avoid concurrency problems, often achieved using record locking.
  • A transaction can lock a record to prevent its update by another transaction until the update has completed.

Data Integrity

  • Validation or integrity rules should be defined and automatically invoked at run time by the DBMS.
  • ANSI/ISO suggest that 100% of all enterprise rules should be held in the database and specifically none in application programs.

Security

  • Protecting data against accidental or intentional use by unauthorized users.
  • Each user requires identification with a user-id and password.
  • Users can be restricted in the data they can see and what actions they can perform on that data.
  • The DBMS encrypts and decrypts data as it is stored and retrieved, restricting users access to data via Views.

Database and DBMS

  • A database is a shared integrated computer structure that houses a collection of end-user data and metadata.
  • A database management system (DBMS) is a collection of programs that manages the database structure, controls access to the data stored in the database, and includes a query language.

DBMS Functions

  • Manages Data Dictionary: Stores the definitions of data and their relationships (metadata) in a data dictionary.
  • Manages Data Storage: Creates and manages the complex structures required for data storage.
  • Data Transformation & Presentation: Transforms entered data to conform to the data structures that are required to store the data.
  • Manages Security: Creates a security system and enforces security within that system.
  • Multi-user access control: Creates complex structures that allow multiple-user access to the data.
  • Manages Backup and recovery : Performs backup and data recovery procedures to ensure data safety.
  • Manages Data Integrity: Promotes and enforces integrity rules to eliminate data integrity problems.
  • Provides Database Language and Application programming interfaces: Provides access to the data via utility programs and programming languages interfaces.
  • Manages Database communication interfaces: Provides end-user access to data within a computer network environment.

Database Models

  • Collection of logical constructs used to represent data structure and relationships within the database.
  • Conceptual models: logical nature of data representation
  • Implementation/Physical models: emphasis on how the data are represented in the database
  • Conceptual Models consists of: Context Model, Key Model and a Fully attributed Model
  • Implementation/Physical Models include: Hierarchical, Network and Relational

Implementation Models

  • Hierarchical: Logically represented by an upside-down tree: each parent has many children and each child has only one parent.
  • Network: Each record can have multiple parents, composed of sets and sets have two records: owner record and member record.
    • Member may have several owners.

Relational Database Model

  • Perceived by user as a collection of tables for data storage, where a table is a series of row/column intersections and tables are related by sharing common entity characteristics.
  • Tables are known as Relational Tables.

Relational Database Model, Advantages

  • Structural independence
  • Improved conceptual simplicity
  • Easier database design, implementation, management, and use
  • Ad hoc query capability with SQL
  • Powerful database management system

Relational Database Model, Disadvantages

  • Substantial hardware and system software overhead
  • Conceptual simplicity allows untrained people to potentially generate poor designs
  • Ease of development may promote 'islands of information' as departments 'go their own way'

Relational Database Terminology

  • The EMPLOYEE relation: EMPLOYEE (emp_num, emp_Iname, emp_fname, emp_initial, emp_hiredate, job_code) is known as the "table name".
  • Each row is known as a TUPLE
  • Each column known as an ATTRIBUTE

Review

  • Information is derived from data, which are usually stored in a database
  • A DBMS is software that implements and manages a database
  • Databases were developed to address the weaknesses of file systems
  • A DBMS presents to the user a single data repository that promotes data sharing as well as enforces data integrity, eliminates redundancy and promotes data security

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