Module 1 Database Management

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

1/125

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

126 Terms

1
New cards

Database

organized collection of data— facts about people, events, things, or ideas— related to a specific topic or purpose

2
New cards

Difference between file systems and databases

file systems are simple large collections of unstructured files
databases are collections of structured, relational, or complex data that needs to be accessed and monitored constantly

3
New cards

Information

data that is organized in a useful manner

4
New cards

Purpose of a Database

to store large amounts of data in such a way that it is efficient and fast to retrieve it

5
New cards

Is database a single software?

No, it is a system

6
New cards

Databases are made for the storage of ___ amounts of ___

large, data

7
New cards

A database models a real world enterprise using ___ and ___

entities, relationships

8
New cards

DBMS

stands for Databases Management Systems (software package designed to store and manage databases)

9
New cards

Database System

The DBMS software together with the data itself. (Sometimes applications are also included

10
New cards

Mini-world

Some part of the real world about which data is stored

in a database

11
New cards

File system

collection of individual files

accessed by application programs

12
New cards

Drawbacks of File Systems

Data Isolation - files are not related when stored

Data Incompatibility/Redundancy - Data is incompatible across operating systems

13
New cards

How can you define a database?

data types, structures, constraints

14
New cards

What is another word for loading the database contents?

constructing

15
New cards

How can you manipulate the database?

Retrieval: Querying, generating reports

Modification: Insertions, deletions and updates to its content

Accessing the database through Web applications

16
New cards

What are the advantages of using a DBMS

Data Abstraction and Independence
Redundancy control and avoidance

Inferences and actions from the stored data

Data integrity

Security

Efficient Access

Data Administration

Rapid Application Development

Concurrent Access

17
New cards

What is data abstraction/independence when it comes to Advantages of using a DBMS?

Data models are used to present users with a conceptual view of the database while hiding the complexities of the underlying data

18
New cards

What do duplicates do in a DBMS?

wastes disk space, causes inconsistencies, requires updates, increases complexity, and reduces speed

19
New cards

How does data abstraction work?

Programs refer to the data model constructs rather than data storage details

20
New cards

Data abstraction allows for this, which describes the data of interest to that user.

Support of multiple views of data

21
New cards

Large amounts of data requires this to save resources

Redundancy control and avoidance

22
New cards

What does data integrity guarantee?

that the data stored is accurate and consistent with its purpose and design

23
New cards

Using rules and triggers can do two things, what are they?

validate user input
triggers action based on conditions of data

24
New cards

What does security allow in a DBMS?

Access control with user accounts

Levels of Access
Encryption

25
New cards

Efficient Access

Using different interfaces for different types of users

26
New cards

What are some actions that can be done using data administration?

Performance monitoring, data backup or recovery, capacity planning, database tuning, troubleshooting and testing

27
New cards

What was done thanks to rapid application development?

database APIs for different systems/programming languages

28
New cards

Concurrent access

allows multiple users to access/update the database

29
New cards

Concurrency Control

guarantees that each transaction is correctly executed or aborted

30
New cards

Recovery subsystem

ensures that each completed transaction is permanently recorded in the database

31
New cards

Queries

a question made to the database about the data it stores

32
New cards

Relational Algebra

More operational, very useful for representing execution plans

33
New cards

Relational Calculus

More nonoperational and declarative, lets users describe what they want, rather than how to compute it.

34
New cards

Transaction

the propagation of one or more changes to the database through a work unit

35
New cards

What are the properties of transactions (ACID)?

Atomicity
Consistency
Isolation
Durability

36
New cards

Atomicity (all-or-nothing)

ensures that all operations within the work unit are completed successfully (or will be reverted

37
New cards

Consistency

ensures that the database properly changes states upon a successfully committed transaction

38
New cards

Isolation

enables transactions to operate independently of and transparent to each other.

39
New cards

Durability

ensures that the result or effect of a committed transaction persists in case of a system failure.

40
New cards

DBMS catalog stores what?

the description (or meta-data) of a particular database

41
New cards

DBMS catalog allows the software to..?

work with different database applications (program data independence)

42
New cards

Actors on the Scene

Those who actually use and control the database content, and those who design, develop and maintain database applications

43
New cards

Workers Behind the Scene

Those who design and develop the DBMS software and related tools, and the computer systems operators

44
New cards

Database Administrators

Responsible for authorizing access to the database, for coordinating and monitoring its use, acquiring software and hardware resources, controlling its use and monitoring efficiency of operations.

45
New cards

Database Designers

Responsible to define the content, the structure, the constraints, and functions or transactions against the database. They must communicate with the end-users and understand their needs

46
New cards

End-users

They use the data for queries, reports and some of them update the database content.

47
New cards

Categories of End-users

Casual

Naive/Parametric

Sophisticated
Stand-alone

48
New cards

Casual End-user

access database occasionally when needed

49
New cards

Naive/parametric end-user

They use previously well-defined functions in the form of “canned transactions” against the database

(users of mobile apps, bank tellers, social media users)

50
New cards

sophisticated end-user

They are thoroughly familiar with system capabilities, use tools in the form of software packages

51
New cards

stand-alone end user

maintain personal databases using ready-to-use packaged applications

52
New cards

Hierarchical database model

data records are linked as collection trees, with one-to-many relationships (1 parent)

53
New cards

Network Database Model

Data records are linked as graphs, with many-to-many relationships (more than 1 parent)

54
New cards

Entity Relational Model

Most widely used, models are easy to understand (more semantics), but limited to conceptual model (no implementation)

55
New cards

Relation

A table with rows and columns, used by Entity Relational Model

56
New cards

Schema

describes a relation’s attributes(columns)

57
New cards

Object-oriented and extended relational models

more semantics, support for complex objects, support for inheritance, unstructured data (xml)

58
New cards

NOSQL database model

non-relational, less semantics, grows horizontally, lack of specific standards, designed for programmers/big data

59
New cards

What are the main costs of using a DBMS?

High initial investment, overhead for providing many functions (security, generality, etc)

60
New cards

When would a DBMS be unnecessary

if database is simple, well defined, and not expected to change
if access to data by multiple users isnt required

61
New cards

When would a DBMS be infeasible

in embedded systems where a general DBMS may not fit in available storage

62
New cards

Data Model

concepts describing structure of database, operations, and constraints

63
New cards

Data Model Constructs

define database structure (elements/groups of elements) and relationships among them

64
New cards

Data Model Constraints

specify restrictions on valid data

65
New cards

Data Model Operations

specify database retrievals and updates

66
New cards

Conceptual Data Models

(High Level, Semantic), provide concepts that are close to the way many users perceive data

67
New cards

Examples of Conceptual data models

Entity Based (ER Diagrams)

Object Based (UML diagrams)

68
New cards

Physical Data Models

(Low Level, Internal), provide concepts that describe details of how data is stored physically

69
New cards

Implementation Data Models

(Representational), provide concepts that mix details of how data is stored physically with details of how many users percieve data

70
New cards

Self Describing Data Model

(semi-structured/unstructured) include XML, key-value stores, and other NOSQL Systems

71
New cards

Database Schema

Defines the database implementation of a data model in a specific DBMS

72
New cards

What does Database Schema include?

the database structure, data types, keys, and the constraints on the database

73
New cards

What is another word for Schema?

Implementation Model or Intension

74
New cards

Schema Diagram

Illustrative Display of a database schema

75
New cards

What is another word for Schema Diagram?

entity-relationship Diagram

76
New cards

Schema Construct

A component of the schema or an object within the schema

77
New cards

Database State

Actual data stored in a database at a particular moment in time

78
New cards

database state is also known as what?

Database instance/occurence/snapshot

79
New cards

The term instance is also applied to what?

individual database components

80
New cards

Initial Database State

Refers to the database state when it is initially loaded into the system

81
New cards

Valid State

A state that satisfies the structure and constraints of the databas

82
New cards

What is the difference between a database schema vs a database state?

The database schema changes very infrequently.

The database state changes every time the database is updated

83
New cards

What is another word for State?

extension

84
New cards

What is the external schema (Top of the three-schema architecture)?

Describes how users see the data (described as three different view boxes going to and from the conceptual/logical schema)

85
New cards

What is the conceptual (logical) schema (middle of the three-schema architecture)?

Describes the structure-constraints for the database using a conceptual or implementation data model (takes info to/from the internal schema)

86
New cards

What is the internal (Physical) schema (bottom of the three-schema architecture)?

Defines how the data is stored in files and indexes used

87
New cards

Creating new entities/relationships is conceptual, internal, or external?

conceptual

88
New cards

Using a different storage medium is conceptual, internal, or external?

internal

89
New cards

Changing the type of index on an entity is conceptual, internal, or external?

internal

90
New cards

Connecting to the database using java is conceptual, internal, or external?

external

91
New cards

What are the steps in database design?

Requirements Gathering
Creating conceptual model
choose appropriate DBMS
Map conceptual model into Implementation Model
Implement the database Schema using the DBMS language

92
New cards

Data Definition Language

Used by the DBA and database designers to specify the conceptual schema of a database.

93
New cards

Data Manipulation Language

Used to specify database retrievals, insertions, deletions, and modifications (updates)

94
New cards

High-Level or Non-procedural Languages

The user only specifies what data is needed (these include the relational language SQL)

95
New cards

Low Level or Procedural Languages

The user specifies what data is needed and how to get it (recordsets) in a programming language like C++, Java, etc

96
New cards

View Definition Language

Allow us to create user views

97
New cards

What are views?

“virtual” tables containing subsets of records available to certain users

98
New cards

Data Control Language

Allow us to control the access of a databases (define privileges)

99
New cards

Storage Control Language

Allow us to map elements to disk and define ways to store data (indexes, hashes, etc.)

100
New cards

Transaction Control Language

Allow us to control transaction commits and rollbacks