Database Design Final (copy)

0.0(0)
studied byStudied by 2 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/179

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.

180 Terms

1
New cards

database

organized collection of logically related data

2
New cards

data

stored representations of meaningful objects and events

3
New cards

what are the two types of data

structured and unstructured

4
New cards

structured data

numbers, text, dates

5
New cards

unstructured data

images, video, documents

6
New cards

information

data processed to increase knowledge in the person using the data

7
New cards

metadata

data that describes the properties and context of user data, how to make the database useful through definitions

8
New cards

context

helps users understand data

9
New cards

disadvantages of file processing

  1. program-data dependence

  2. duplication of data

  3. limited data sharing

  4. lengthy developmental times

  5. excessive program maintenance

10
New cards

what is the solution of file processing?

databases

11
New cards

database management system (DBMS)

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

12
New cards

advantages of a database

  • program-data independence

  • improved data consistency and quality

  • increased application development productivity

  • enforcement of standards

13
New cards

elements of the database

  • data models

  • entities

  • relationships

  • relational databases

14
New cards

what are the types of data model

enterprise data model and project data model

15
New cards

data model

graphical system capturing nature/relationship of data

16
New cards

enterprise data model

high level entities and relationships for an organization

17
New cards

project data model

more detailed, new, matching data structure in database or data warehouse

18
New cards

entities

noun form describing a person, place, object, event or concept that is composed of attributes

19
New cards

relationships

between entities, usually one to many (1:N) or many to many (N:N)

20
New cards

relational databases

database technology involving tables (relations) representing entities and primary/ foreign keys representing relationships

21
New cards
<p>what is this picture showcasing?</p>

what is this picture showcasing?

the components of the database environment

22
New cards

CASE tools

computer-aided software engineering

23
New cards

repository

centralized storehouse of metadata

24
New cards

application program

software using the data

25
New cards

user interface

text and graphical display to users

26
New cards

database administrators

personnel responsible for maintaining database

27
New cards

system developers

personnel responsible for designing databases and software

28
New cards

end users

people who use applications and databases

29
New cards

what are the approaches to database and IS development?

system development lifecycle (SDLC) and rapid application development (RAD)

30
New cards

system developmental lifecycle

detailed, well planned development process with a long cycle, time consuming but comprehensive

31
New cards

what are the stages of the SDLC?

  1. planning

  2. analysis

  3. logical design

  4. physical design

  5. implementation

  6. maintenance

32
New cards

rapid application development

  • prototyping: cursory attempt and conceptual data modeling, defines DB during development and repeats implementation and maintenance w new prototype

  • agile: individuals and interactions, working software, customer collaboration, responding to change

33
New cards

what are the types of database schema?

external, conceptual, and internal

34
New cards

external schema

user reviews, subsets of conceptual schema. Can be determined from business functionality data entity materials

35
New cards

conceptual schema

used for entity relational model

36
New cards

internal schema

logical and physical structures, underlying design and implementation

37
New cards

what are the database architectures?

  • hierarchical

  • network

  • relational

  • object oriented

  • star schema

  • big data/ data lake

38
New cards

what is the range of database applications

  • personal databases

  • two tier and N tier client/server databases

  • enterprise applications

39
New cards

what are the enterprise database applications?

  • enterprise resource planning

  • data warehouse

  • data lake

40
New cards

enterprise resource planning (ERP)

integrate all enterprise functions (manufacturing, finance, sales, etc.)

41
New cards

data warehouse

integrated decision support system derived from various operational databases

42
New cards

data lake

‘collect everything’ integrated repository for internal and external data that is not based on a predefined data model or schema

43
New cards

what are the versions of an ERD?

  • original ER model

  • extended ER model

  • information engineering 

  • IDEF1X

  • Unified modeling language

44
New cards

what are the types of attributes?

single value, composite, and multi-value

45
New cards

what are the types of identifiers?

unique, non unique, and composite

46
New cards

unique identifier

the value identifies one and only one entity instance

47
New cards

non unique identifier

the value identifies a set of instances

48
New cards

composite identifier

identifiers that consist of 2+ attributes

49
New cards

primary key (PK)

uniquely identifies a record in the table, can be designated as a field or collection of fields

50
New cards

How to make foreign key in 1:N?

take PK from 1 side and put it in N side

51
New cards

How to make foreign key in 1:1?

take PK on one side to the other, either works just explain

52
New cards

FK in N;M?

not possible, because foreign key is not unique in that relationship!

53
New cards

foreign key (FK)

when the primary key of one table is represented in a second table to form a relationship

54
New cards

what are the types of degrees of a relationship?

unary, binary, and ternary

55
New cards

unary relationship

one entity is directly related to another of the same entity type of a single class

56
New cards

binary relationship

entities of 2 types are related to each other (can be 1:1, 1:N, N:M)

57
New cards

ternary relationship

entities of 3 types are related to each other

58
New cards

maximum carnality

indicates the max # of entities that can be involved in a relationship

59
New cards

minimum carnality

indicate that there may or may not be an entity in a relationship, showcased by O or |

60
New cards

weak entities

logically depends on another entity, can be ID-dependent entities, have a minimum carnality of 1

61
New cards

subtype entity

represents a special case of another entity that is specialized

62
New cards

supertype entity

generalization of subtypes

63
New cards

composite key

foreign and primary key to create a relationship and break many to many, used in associative entity

64
New cards

associative entity

a relationship with an attribute, but is also considered to be an entity in its own right. Breaks N:M by creating a ‘checkpoint’ to ensure the ERD is valid

65
New cards

business rules when creating database or ERD

  • statements define/constrain some aspect of business

  • asset business structure

  • control/influence business behavior

  • expressed in terms familiar to end users

  • automated through DBMS software

66
New cards

steps on the data modeling process

  • plan project

  • determine requirements

  • specify entities, then relationships

  • determine identifies (PK and FK)

  • specify attributes and domains

  • validate model

67
New cards

attribute inheritance

subtype entities inherit the values of all attributes of the supertype, an instance of a subtype is also an instance of the supertype

68
New cards

what does generalization do?

  • put common attributes in supertype

  • determine if supertype could be only one of the subtypes or both

  • only entities with unique attributes of the supertype get a subtype

69
New cards

completeness constraints

whether an instance of a supertype must also be a member of at lease one subtype

70
New cards

total specialization rule

instance of a supertype is in 1+ subtype, shown as double line

71
New cards

partial specialization rule

instance of supertype is not in subtype or is a ghost subtype, shown as single line

72
New cards

disjointness constraints

whether an instance of a supertype may simultaneously be a member of 2+ subtypes

73
New cards

disjoint rule

an instance of the supertype can only be in ONE of the subtypes, shown as a “d” in a circle

74
New cards

overlap rule

an instance of a supertype can be in more than one of the subtypes, shown as an “o” i a circle

75
New cards

subtype discriminator

an attribute of the supertype whose values determine the target subtype(s)

76
New cards

disjoint discriminator

a simple attribute with alternative values to indicate the possible subtypes (Attribute X leads to subtype A or B)

77
New cards

overlapping discriminator

a composite attribute whose subparts pertain to different subtypes, each support containing a boolean value to indicate whether or not the instance belongs to the associated subtype (Attribute X with A?B?C? to sort into proper subtypes in boolean manner)

78
New cards

relation definition and components

2 dimensional table

  • rows contain data about an entity

  • columns contain data about attributes

  • cels of table hold a single value

  • all entries in a column are form the same kind, each column has unique name

  • order or columns and rows is unimportant, but cannot be identical

79
New cards

tuple

record = row

80
New cards

key field have what purpose?

  • serve as a unique identifier (PK)

  • enable a dependent relation to refer to its parent relation (FK)

81
New cards

simple attributes while mapping to relations

ER attributes map directly onto the relation

82
New cards

composite attributes while mapping to relations

use only their simple, component attribute

83
New cards

multi-valued attributes while mapping to relations

becomes a separate relation with a FK taken from the superior entity

84
New cards
<p>what attribute type is this mapping?</p>

what attribute type is this mapping?

composite attribute

85
New cards
<p>what attribute type is this mapping?</p>

what attribute type is this mapping?

multivalued attribute

86
New cards
<p>what entity is being mapped?</p>

what entity is being mapped?

weak entity

87
New cards
<p>what entity is being mapped?</p>

what entity is being mapped?

associative entity

88
New cards
<p>what entity is being mapped?</p>

what entity is being mapped?

an entity with a unary 1:N relationship

89
New cards
<p>what entity is being mapped?</p>

what entity is being mapped?

an entity with a supertype and subtype relationship

90
New cards

what are the types of modification anomalies?

deletion and insertion

91
New cards

deletion anomaly

facts about 2 entities are lost with one deletion

92
New cards

insertion anomaly

cannot insert an entity until information about a second entity is known

93
New cards

functional dependency

the value of one (set of) attribute(s) determines the value of a second (set of) attribute(s)

94
New cards

determinant

attributes on the left side of a functional dependency

95
New cards

what is always a determinant?

a primary key!

96
New cards

normalization

eliminated modification anomalies by breaking a relation into 2+ relations with a different, 

97
New cards

1NF

any table of data if it meets the definition of a relation

98
New cards

2NF

if all non-key attributes are dependent on all of the key (no partial dependencies)

99
New cards

how does a relation automatically become 2NF?

if it has a single attribute key

100
New cards

3NF

if a relation is in 2NF and has no transitive dependencies