Databases and DBMS Explained

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

Which of the following best describes a database?

  • Random numbers stored on a hard drive.
  • A logically coherent collection of data with inherent meaning. (correct)
  • A disorganized compilation of facts.
  • A collection of unrelated data points.

A DBMS is a general-purpose software system that facilitates defining, constructing, manipulating, and sharing databases.

True (A)

What term is used to describe the data that defines and describes other data within a database?

meta-data

The process of storing data within a storage medium, controlled by the DBMS, is known as database __________.

<p>construction</p> Signup and view all the answers

Match the following database terms with their descriptions:

<p>Data = Recorded facts that carry an implicit meaning. Information = Processed data in an understandable user form. Database = A structured collection of related data. DBMS = Software for managing databases.</p> Signup and view all the answers

Which of the following is NOT a function typically included in manipulating a database?

<p>Creating a data backup on external storage. (C)</p> Signup and view all the answers

Sharing a database allows only one user to access and modify the data at a time to prevent conflicts.

<p>False (B)</p> Signup and view all the answers

What is the purpose of the 'GRADE_REPORT' file in the university database example?

<p>stores the grades that students receive in the various sections they have completed</p> Signup and view all the answers

In a university database, the file that includes the prerequisites of each course is known as the __________ file.

<p>PREREQUISITE</p> Signup and view all the answers

Match the following files from the university database example with the data they store:

<p>STUDENT = Data on each student COURSE = Data on each course SECTION = Data on each section of a course PREREQUISITE = Prerequisites of each course</p> Signup and view all the answers

What does defining a database involve?

<p>Specifying the data types, structures, and constraints. (B)</p> Signup and view all the answers

When defining a database, it's unnecessary to specify a data type for each data element within a record.

<p>False (B)</p> Signup and view all the answers

In the 'STUDENT' record of a university database, what are some examples of the data elements that could be included?

<p>Name, Student_number, Class, and Major</p> Signup and view all the answers

The process of populating the university database with data representing each student, course, and section is known as database __________.

<p>construction</p> Signup and view all the answers

Match the database action with its corresponding example:

<p>Query = Retrieving the transcript of 'Smith' Update = Changing the class of 'Smith' to sophomore New Entry = Creating a new section for the 'Database' course Modification = Entering a grade of 'A' for 'Smith' in the 'Database' section</p> Signup and view all the answers

Which of the following is a DISADVANTAGE of file processing systems that DBMS aims to solve?

<p>Data duplication (B)</p> Signup and view all the answers

A key advantage of the database approach is that each program must maintain metadata for each file it uses.

<p>False (B)</p> Signup and view all the answers

What is the primary benefit of a 'central repository of shared data' in the database approach?

<p>eliminates data redundancy</p> Signup and view all the answers

In the database system, the feature that allows modification of the database structure without affecting application programs is known as program-data __________.

<p>independence</p> Signup and view all the answers

Match the characteristic of the database approach with its description:

<p>Self-describing nature = Database contains its own structure and constraints. Data abstraction = Programs are insulated from data changes. Multiple views = Support for different user perspectives. Sharing of data = Multi-user and transaction processing.</p> Signup and view all the answers

What does the DBMS catalog contain?

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

Program-data independence means that the structure of data files is embedded in the application programs and cannot be changed.

<p>False (B)</p> Signup and view all the answers

What term describes the characteristic that allows program-data independence and program-operation independence?

<p>data abstraction</p> Signup and view all the answers

A type of data abstraction used to provide a conceptual representation of data is known as a __________ __________.

<p>data model</p> Signup and view all the answers

Match each term with its meaning in database context:

<p>Virtual data = Data derived from database files but not explicitly stored Data Model = A type of data abstraction Database Views = Different perspectives for each user of a database DBMS Catalog = Contains information about structure and type of item</p> Signup and view all the answers

What is ensured by the 'isolation' property in multiuser transaction processing?

<p>Each transaction appears to execute in isolation from others. (D)</p> Signup and view all the answers

The 'atomicity' property guarantees that if a transaction is interrupted, some of its operations may still be committed while others are rolled back.

<p>False (B)</p> Signup and view all the answers

What is the role of a Database Administrator (DBA)?

<p>authorizing access to the database, coordinating and monitoring its use, and acquiring necessary resources</p> Signup and view all the answers

The actor on the scene who is held __________ for problems such as security breaches and poor system response time is the Database Administrator.

<p>accountable</p> Signup and view all the answers

Match each 'Actor on the Scene' with their responsibility:

<p>Database Administrators = Authorize database access, coordinate use Database Designers = Identify data, choose structures System Analysts = Establish end user requirements Application Programmers = Implement specifications as program</p> Signup and view all the answers

What is a primary task of Database Designers?

<p>Identifying data to be stored in the database and choosing appropriate structures. (B)</p> Signup and view all the answers

Database Designers communicate with prospective database users to understand their requirements after the database is implemented and populated with data.

<p>False (B)</p> Signup and view all the answers

What do database designers develop to meet the data and processing needs of different potential user groups?

<p>views</p> Signup and view all the answers

People whose jobs require ongoing access to the database for tasks such as querying, updating, and report generation are classified as __________ __________.

<p>end users</p> Signup and view all the answers

Associate the types of 'End Users' with their characteristics:

<p>Casual end users = Access database occasionally. Naive end users = Use fixed canned transactions for updates. Sophisticated end users = Thoroughly analyze the facility of DBMS. Standalone users = For tax purposes or maintaining personal database.</p> Signup and view all the answers

Which of the following describes what System Analysts do?

<p>Determine the requirements of end users, especially naive and parametric end users. (C)</p> Signup and view all the answers

Operators and maintenance personnel are the workers 'on the scene' that design and implement the DBMS system.

<p>False (B)</p> Signup and view all the answers

What are 'canned transactions' as they relate to databases and end-users?

<p>standard types of queries that can be used to update a database</p> Signup and view all the answers

Controlling database _______________ is an advantage of using the DBMS approach.

<p>redundancy</p> Signup and view all the answers

Match the following advantages of DBMS:

<p>Redundancy = Ensures that data is not unnecessarily duplicated Unauthorized access = Protects confidential data Backup = Recovers database when data is crash or lose Relationships among Data = Help understand the connection within different datas</p> Signup and view all the answers

Flashcards

What is a database?

A collection of related data stored for efficient retrieval and management.

What is data?

Known facts that can be recorded and have implicit meaning, like names or phone numbers.

What is Information?

Data that has been processed to be understandable and useful to users.

What is a DBMS?

A collection of programs that allows users to create and maintain a database.

Signup and view all the flashcards

What is Defining a database?

Specifying data types, structures, and constraints for data in a database.

Signup and view all the flashcards

What is Meta-data?

The database definition or descriptive information stored by the DBMS.

Signup and view all the flashcards

What is Constructing a database?

Storing data on a storage medium controlled by the DBMS.

Signup and view all the flashcards

What is Manipulating a database?

Querying and updating data in a database.

Signup and view all the flashcards

What is querying?

Functions for querying the database to retrieve specific data or reflect changes.

Signup and view all the flashcards

What is sharing a database?

Allows multiple users and programs to access the database simultaneously.

Signup and view all the flashcards

What is System protection?

System to protect the database against hardware or software malfunction.

Signup and view all the flashcards

What is Security protection?

Protection against unauthorized or malicious access.

Signup and view all the flashcards

What is a Database system?

A database and the DBMS software together.

Signup and view all the flashcards

What does a database represent?

A database represents some aspect of the real world.

Signup and view all the flashcards

What is a database?

A logically coherent collection of data with inherent meaning.

Signup and view all the flashcards

What data does a university database contains?

A university database stores data about students, courses, and grades.

Signup and view all the flashcards

Defining a database involves

Specifying the structure and data types of elements in a database.

Signup and view all the flashcards

Constructing a database means

Storing data to represent entities in the database.

Signup and view all the flashcards

What is database manipulation?

Retrieval or modification of data. Examples: transcripts of student or updating the class of student.

Signup and view all the flashcards

Program-Data Dependence

All programs maintain metadata for each file they use.

Signup and view all the flashcards

What is Duplication of Data?

Different systems/programs have separate copies of the same data.

Signup and view all the flashcards

What is Limited Data Sharing

No centralized control of data.

Signup and view all the flashcards

What is Lengthy Development Time?

Programmers must design their own file formats.

Signup and view all the flashcards

What is Excessive Program Maintenance?

80% of information systems budget.

Signup and view all the flashcards

What is the database approach?

A central repository of shared data managed by a controlling agent.

Signup and view all the flashcards

What is Self-describing nature of a database system?

Nature of a database system means the database system contains the database itself and definition or description of the database structure and constraints(meta-data ).

Signup and view all the flashcards

What is program-data independence?

Insulation between programs and data; the structure of data files is stored in the DBMS catalog separately from the access programs.

Signup and view all the flashcards

What is a Data abstraction

The characteristic that allows program-data independence and program-operation independence

Signup and view all the flashcards

What is a conceptual representation of data?

Does not include many of the details of how the data is stored or how the operations are implemented

Signup and view all the flashcards

What is a data model?

A type of data abstraction that is used to provide this conceptual representation

Signup and view all the flashcards

What is Support of Multiple Views of the Data?

A database typically has many users, each of whom may require a different perspective or view of the database.

Signup and view all the flashcards

What is sharing of data and multiuser transaction processing?

A multiuser DBMS must allow multiple users to access the database at the same time.

Signup and view all the flashcards

What is a transaction?

is an executing program or process that includes one or more database accesses, such as reading or updating of database records.

Signup and view all the flashcards

What is isolation?

Ensures that each transaction appears to execute in isolation from other transactions, even though hundreds of transactions may be executing concurrently.

Signup and view all the flashcards

What is atomicity?

Property to ensures that either all the database operations in a transaction are executed or none are.

Signup and view all the flashcards

Who is a database administrator?

Responsible for authorizing access to the database, coordinating and monitoring its use, and acquiring necessary resources.

Signup and view all the flashcards

Who is a database designer?

Responsible for identifying the data to be stored and choosing appropriate structures.

Signup and view all the flashcards

Who are end users?

People whose jobs require access to the database for querying, updating, and generating reports.

Signup and view all the flashcards

Who are Casual end users?

Occasionally access the database and need different information each time.

Signup and view all the flashcards

Who are Naive or parametric end users?

Make up a sizable portion of database end users, constantly querying and updating the database.

Signup and view all the flashcards

Study Notes

  • Database: A collection of related data.
  • Data is stored on a hard drive, using a personal computer and software such as Microsoft Access or Excel.
  • Data means known facts that can be recorded and carry an implicit meaning, such as name or phone number.
  • Information is data that has been processed and placed in an appropriate and understandable user form.
  • A database represents some aspect of the real world.
  • A database is a logically coherent collection of data with some inherent meaning.
  • A database is designed, built, and populated with data for a specific purpose.
  • Database Management System (DBMS) is a collection of programs that enables users to create and maintain a database.
  • The DBMS is a general-purpose software system that facilitates defining, constructing, manipulating, and sharing databases.
  • Defining a database involves specifying the data types, structures, and constraints of the data to be stored in the database.
  • The database definition or descriptive information is also stored by the DBMS in the form of a database catalog or dictionary called meta-data.
  • Constructing the database is the process of storing the data on some storage medium that is controlled by the DBMS.
  • Manipulating a database includes functions such as querying the database to retrieve specific data and updating the database to reflect changes.
  • Sharing a database allows multiple users and programs to access the database simultaneously.
  • Other important functions provided by the DBMS include protecting and maintaining the database over a long period.
  • Protection includes system protection against hardware or software malfunction (or crashes) and security protection against unauthorized or malicious access.
  • Examples of database management systems include Access, Oracle, Power Builder, Mysql, Sl Server, and Sybase.
  • Database and DBMS software together is a database system.

University Database Example

  • A university database maintains information concerning students, courses, and grades in a university environment.
  • The database is organized as five files, each of which stores data records of the same type.
  • The STUDENT file stores data on each student.
  • The COURSE file stores data on each course.
  • The SECTION file stores data on each section of a course.
  • The GRADE REPORT file stores the grades that students receive in the various sections they have completed.
  • The PREREQUISITE file stores the prerequisites of each course.

Defining a Database

  • To define this database, the structure of the records of each file must be specified by specifying the different types of data elements to be stored in each record.
  • Each STUDENT record includes data to represent the student's Name, Student_number, Class, and Major.
  • Each COURSE record includes data to represent the Course_name, Course_number, Credit_hours, and Department.
  • A data type for each data element within a record is specified, for example, Name of STUDENT is a string of alphabetic characters, Student_number of STUDENT is an integer, and Grade of GRADE_REPORT is a single character from the set {'A', 'B', 'C', 'D', 'F', 'I'}.

Constructing a Database

  • To construct the UNIVERSITY database, data to represent each student, course, section, grade report, and prerequisite must be stored as a record in the appropriate file.
  • Records in the various files may be related.

Database Manipulation

  • Examples of queries are as follows: retrieve the transcript-a list of all courses and grades-of 'Smith,' list the names of students who took the section of the 'Database' course offered in fall 2008 and their grades in that section, and list the prerequisites of the 'Database' course.
  • Examples of updates include the following: change the class of 'Smith' to sophomore, create a new section for the 'Database' course for this semester, and enter a grade of 'A' for 'Smith' in the 'Database' section of the last semester.

Disadvantages of File Processing

  • Program-Data Dependence: All programs maintain metadata for each file they use.
  • Duplication of Data: Different systems/programs have separate copies of the same data.
  • Limited Data Sharing: No centralized control of data.
  • Lengthy Development Times: Programmers must design their own file formats.
  • Excessive Program Maintenance: 80% of the information systems budget.

Solution: The Database Approach

  • Central repository of shared data.
  • Data is managed by a controlling agent.
  • Stored in a standardized, convenient form.
  • A central database contains employee, order, inventory, pricing, and customer data.

Characteristics of the Database Approach

  • Self-describing nature of a database system.
  • Insulation between programs and data, and data abstraction.
  • Support of multiple views of the data.
  • Sharing of data and multiuser transaction processing.

Self-Describing Nature of a Database System

  • The database system contains the database itself and a definition or description of the database structure and constraints (meta-data).
  • This definition is stored in the DBMS catalog, containing information such as the structure of each file, the type and storage format of each data item, and various constraints on the data.
  • In traditional file processing, data definition is typically part of the application programs themselves.

Insulation between Programs and Data, and Data Abstraction

  • In traditional file processing, the structure of data files is embedded in the application programs, so any changes to the structure of a file may require changing all programs that access that file.
  • In DBMS access programs, the structure of data files is stored in the DBMS catalog separately from the access programs; this property is called program-data independence.

Data Abstraction

  • Data abstraction is the characteristic that allows program-data independence and program-operation independence.
  • Conceptual representation of data does not include many of the details of how the data is stored or how the operations are implemented.
  • A data model is a type of data abstraction used to provide this conceptual representation.

Support of Multiple Views of the Data

  • A database typically has many users, each of whom may require a different perspective or view of the database.
  • A view may be a subset of the database or contain virtual data derived from the database files but not explicitly stored.

Sharing of Data and Multiuser Transaction Processing

  • A multiuser DBMS must allow multiple users to access the database at the same time.
  • This is essential if data for multiple applications is to be integrated and maintained in a single database.
  • The concept of a transaction has become central to many database applications.
  • A transaction is an executing program or process that includes one or more database accesses, such as reading or updating database records.
  • Each transaction should execute a logically correct database access if executed in its entirety without interference from other transactions.
  • The isolation property ensures that each transaction appears to execute in isolation from other transactions, even though hundreds of transactions may be executing concurrently.
  • The atomicity property ensures that either all the database operations in a transaction are executed or none are.

Actors on the Scene

  • Database Administrators
  • Database Designers
  • System Analysts and Application Programmers (Software Engineers)
  • End User

Database Administrators

  • The database administrator (DBA) is responsible for authorizing access to the database.
  • The DBA coordinates and monitors database use.
  • The DBA acquires software and hardware resources as needed.
  • The DBA is accountable for problems such as security breaches and poor system response time.

Database Designers

  • Database designers are responsible for identifying the data to be stored in the database and for choosing appropriate structures to represent and store this data.
  • These tasks are mostly undertaken before the database is actually implemented and populated with data.
  • They communicate with all prospective database users to understand their requirements and create a design that meets those requirements.
  • Database designers interact with each potential group of users and develop views of the database that meet the data and processing requirements of these groups.
  • Each view is then analyzed and integrated with the views of other user groups.

End Users

  • End users access the database for querying, updating, and generating reports.

Categories of End Users

  • Casual end users occasionally access the database and may need different information each time.
  • Naive or parametric end users make up a sizable portion of database end users; their main job function revolves around constantly querying and updating the database using standard types of queries and updates called canned transactions.
  • Sophisticated end users include engineers, scientists, business analysts, and others who thoroughly familiarize themselves with DBMS facilities to implement their applications for complex requirements.
  • Standalone users maintain personal databases by using ready-made program packages that provide easy-to-use menu-based or graphics-based interfaces; for example, tax packages that store personal financial data for tax purposes.

System Analysts and Application Programmers

  • System analysts determine the requirements of end users, especially naive and parametric end users, and develop specifications for standard canned transactions that meet these requirements.
  • Application programmers implement these specifications as programs, then test, debug, document, and maintain these canned transactions.

Workers Behind the Scene

  • DBMS system designers and implementers.
  • Tool developers design and implement tools.
  • Operators and maintenance personnel (system administration personnel) for the actual running and maintenance of the hardware and software environment for the database system.

Advantages of Using the DBMS Approach

  • Controlling Redundancy.
  • Restricting Unauthorized Access.
  • Providing Storage Structures and Search Techniques for Efficient Query Processing.
  • Providing Backup and Recovery.
  • Providing Multiple User Interfaces.
  • Representing Complex Relationships among Data.

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