BTMA 331 01 - database environments and ERDs

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/47

flashcard set

Earn XP

Description and Tags

Database environments and ERDs

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

48 Terms

1
New cards

Limitations of file processing systems

  • Program-data dependence

  • Duplication of data

  • Limited data sharing

  • Lengthy development times

  • Excessive program maintenance

2
New cards

Program data dependence

File descriptions are stored within each program, so any change to a file structure requires changes to all programs that access it.

3
New cards

Duplication of data

Applications developed independently often result in duplicate data files, which can lead to inconsistent formats and values.

4
New cards

Limited data sharing

 Each application has its own private files, limiting cross-department access.

5
New cards

Lengthy development times

Developers must create new file formats and logic from scratch for each new application

6
New cards

Excessive program maintenance

As much as 80% of development budgets could be used on maintenance in such systems​.

7
New cards

what is the solution to these limitations of file processing systems?

DBMS, database management system

8
New cards

DBMS

A software system that is used to create, maintain, and provide controlled access to user databases

9
New cards
<p>Architecture of database environment</p>

Architecture of database environment

  1. End users use application programs to interact with the database.

  2. System developers build these programs and interact with the user interface and DBMS.

  3. DBAs use modeling tools to define data structure and rules, stored in the Repository.

  4. The DBMS acts as the mediator, ensuring all users and applications access the Database properly and securely.

  5. Metadata stored in the Repository guides how data is stored, accessed, and validated.

10
New cards

repository

centralized storehouse of metadata

11
New cards

Metadata are defined as data that

 describe the properties or characteristics of end-user data and the context of that data

12
New cards

Metadata includes

names, definitions, length or size, allowable values, data source, storage location, ownership, and usage

13
New cards

Metadata helps users understand

data meaning and distinguish between similar items

14
New cards

Typical functions of a DBMS

  • Data Storage Management

  • Data Manipulation Management

  • Data Definition Services

  • Data Dictionary/System Catalog Management

  • Database Communication Interfaces

  • Authorization / Security Management

  • Backup and Recovery Management

  • Concurrency Control Service

  • Transaction Management

  • Database Access and Application Programming Interfaces

15
New cards

Data Storage Management

It provides a mechanism for management of permanent storage of the data.

The internal schema defines how the data should be stored by the storage

management mechanism and the storage manager interfaces with

the operating system to access the physical storage.

16
New cards

Data manipulation management

A DBMS furnishes users with the ability to retrieve, update and delete existing

data in the database.

17
New cards

Data definition services

The DBMS accepts the data definitions such as external schema, the

conceptual schema, the internal schema, and all the associated mappings in

source form

18
New cards

Data dictionary/system catalog management

The DBMS provides a data dictionary or system catalog function in which

descriptions of data items are stored and which is accessible to users.

19
New cards

Database communication interfaces

The end-user's requests for database access are transmitted to DBMS in the

form of communication messages.

20
New cards

Authorization/security management

The DBMS protects the database against unauthorized access, either

international or accidental. It furnishes mechanism to ensure that only

authorized users an access the database.

21
New cards

Backup and recovery management

The DBMS provides mechanisms for backing up data periodically and recovering

from different types of failures.

22
New cards

Concurrency control service

Since DBMSs support sharing of data among multiple users, they must provide a mechanism for managing concurrent access to the database. DBMSs ensure that the database kept in consistent state and that integrity of the data is preserved.

23
New cards

Transaction management

A transaction is a series of database operations, carried out by a single user or application program, which accesses or changes the contents of the database. Therefore, a DBMS must provide a mechanism to ensure either that all the updates corresponding to a given transaction are made or that none of them is made.

24
New cards

Database access and application programming interfaces

All DBMS provide interface to enable applications to use DBMS services. They provide data access via

Structured Query Language (SQL). The DBMS query language contains two components: (a) a Data

Definition Language (DDL) and (b) a Data Manipulation Language (DML)

25
New cards

Schema

description of the overall structure of the database, including tables, fields, relationships OR a logical container or namespace within a database that holds and organizes database objects such as tables, views, stored procedures, and functions.

26
New cards

examples of schemas

  • Text statements listing relations and attributes.

  • Graphical representations using rectangles and fields​.

27
New cards

why do we need three schema architecture?

promotes data independence, security, and flexibility in database management systems. By separating the data into three levels, it allows for easier adaptation to changing user needs, technology advancements, and security requirements.

28
New cards

three schema architecture composed of?

external, conceptual, and internal schema

29
New cards

external schema

User-specific views of the data

30
New cards

conceptual schema

A comprehensive enterprise-wide view of the data

31
New cards

internal schema: made up of logical and physical schema

logical schema: Representation for a specific DBMS type (e.g., relational)

physical schema: How data are stored physically on storage devices​

32
New cards

degree of a relationship refers to

how many entity types participate in that relationship

33
New cards

unary degree

A relationship involving only one entity type. For example, an employee might supervise other employees.

34
New cards

binary (degree 2)

The most common relationship, involving two entity types. For example, a Customer places an Order.

35
New cards

ternary (degree 3)

A relationship involving three entity types. For example, a Supplier provides Parts to a Customer.

36
New cards

cardinality constraints define how many

instances of one entity type can be related to an instance of another entity type. These constraints help specify how the data is connected and can define the minimum and maximum number of relationships possible.

37
New cards

cardinality: mandatory one

An entity must be associated with exactly one instance of another entity.

38
New cards

cardinality: mandatory many

An entity must be associated with one or more instances of another entity.

39
New cards

cardinality: optional one

An entity may or may not be associated with an instance of another entity.

40
New cards

cardinality: optional many

An entity may or may not be associated with one or more instances of another entity.

41
New cards

attribute

An attribute is a property or characteristic of an entity or a relationship. It provides additional information about the entity.

42
New cards

composite attribute

can be broken down into smaller, more detailed components. For example, the attribute Full Name could be split into First Name, Middle Name, and Last Name.

43
New cards

multivalued attribute

can have multiple values for a single instance of an entity. For example, a person can have multiple phone numbers, so the attribute Phone Number might be a multivalued attribute for an Employee.

44
New cards

derived attribute

an attribute whose value can be calculated from other existing attributes. For example, an employee's Average Salary can be calculated from their salary history or individual salary values.

45
New cards

Multivalued attributes or separate entity instances can be used to

represent time-dependent data, with each instance marked by a time stamp.

46
New cards

Multivalued attributes are shown as

repeating groups in tables and need to be broken down during normalization.

47
New cards

Composite attributes are

not atomic and should be split into simpler parts.

48
New cards

Derived attributes are

calculated from other attributes (e.g., age from birthdate).