database model Flashcards

1
Q

Collection of logical constructs used to represent the data
structure and the data relationships found within the database.

A

DATABASE MODELS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Focuses on the logical nature of the data representation

A

Conceptual model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Has an emphasis on how data are represented in the database or on
how data structures are implemented to represent what is modeled.

A

Implementation model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Collection of records logically organized to conform to the
upside-down tree (hierarchical) structure. The structure allows representing information using parent/child
relationships: each parent can have many children, but each child
has only one parent (also known as a 1-to-many relationship).

A

Hierarchical Database Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

On the model, the employee data table represents the “parent”
part of the hierarchy, while the computer table represents the
“child” part of the hierarchy.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

is a database model conceived as a flexible way of representing
objects and their relationships.

A

Network Database Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

perceived as a collection of tables, tables are related to each other by sharing a common entity characteristic (foreign key),
It uses a structure that allows us to identify and access data in
relation to another piece of data in the database.

A

Relational Database Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a person, place, event, or thing for which we intend to collect
data

A

Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

characteristics of each entity
Student – student number, name, address, contact number

A

Attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

collection of entities that share common characteristics

A

Entity set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

two-dimensional structure composed of rows and columns

A

Table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Characteristics of a Relational Table:
*Each table row (tuple) represents a single entity within the entity set
*Each column represents an attribute, and each column has a distinct name
*Each row/column intersection represents a single data value

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

An object is described by its factual content.

A

Object-Oriented Database Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

are abstractions of real-world entities or events.

A

Objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

is a collection of similar objects with shared structure
(attributes) and behavior (methods); organized in class a hierarchy

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

An object can inherit the attributes and methods of the classes

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

graphically represents data as entities and their relationships in a database structure

A

Entity Relationship Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Diagrams created by this process are called

A

entity-relationship diagrams, ER diagrams, or ERDs.

19
Q

A relationship expressed with a verb that implies direction,
makes it impossible to discuss the model using correct English.

A

Relationship Names

20
Q

It has also become prevalent to name roles with phrases e.g.
is-the-owner-of and is-owned-by etc.

A

Role naming

21
Q

Set or group of set used in database

A

Cardinalities

22
Q

Set or group of set used in database

This includes:

A

One to one

One to many

Many to one

Many to many

23
Q

A single row of first table associates with single row of second table.

A

One to One

24
Q

A single row of first table associates with more than one rows of second table.

A

One to Many

25
Q

Many rows of first table associate with a single row of second table.

A

Many to One

26
Q

Many rows of first table associate with many rows of second
table.

A

Many to Many

27
Q

represent entities as boxes, and
relationships as lines between the boxes.

A

Crow’s Foot diagrams

28
Q

Different shapes at the ends of these lines represent the
cardinality of the relationship.

A

Crow’s Foot Notation

29
Q

Relationships have two indicators, shown on both sides of the line.

A

True

30
Q

In crow’s foot notation:

A multiplicity of one and a mandatory relationship is represented
by a straight line perpendicular to the relationship line.

A multiplicity of many is represented by the three-pronged
‘crow-foot’ symbol.

An optional relationship is represented by an empty circle.

A

True

31
Q

Enables programmer to view data logically rather than physically

A

Relational model

32
Q

has advantages of structural and data independence

A

Table

33
Q

consists of one or more attributes that determine other
attributes

A

Keys

34
Q

key that is composed of more than one attributes that uniquely
identifies a record on a table

A

Composite key

35
Q

an attribute that uniquely identifies each entity in a table

A

Superkey

36
Q

Super Key is a superset of Candidate key.

A

True

37
Q

student_id is unique for every row of data, hence it can be used to identity each row uniquely.

A

True

38
Q

Superkey can have redundancies

A

True

39
Q

defined as the minimal set of fields which can
uniquely identify each record in a table.

A

Candidate key

40
Q

A candidate key can never be NULL and its value should be
unique.

A

True

41
Q

There can be more than one candidate keys for a table.

A

True

42
Q

candidate key that uniquely identifies all other attribute values in
any given row.

A

Primary key

43
Q

attribute whose values match the primary key values in the
related table.

A

Foreign key

44
Q

key that is used for data retrieval purposes.

A

Secondary key