Lecture 4 Flashcards

1
Q

What is a Data Model ??

A
  • A set of concepts to describe the structure of a database
  • the operations for manipulating the structure of a database
  • the constraints that the database should obey.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 Categories/types of Data Models ?

A

1) Conceptual (high-level, semantic) data models

2) Physical (low-level, internal) data models

3) Implementation (representational) data models

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

what does the conceptual data type model do?

A

▪ Provide concepts that are close to the way many users perceive data.

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

what does the physical data type model do ?

A

▪ Provide concepts that describe details of how data is stored in the computer.

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

what does the Implementation (representational) data models do ?

A

▪ Provide concepts that fall between the conceptual and the physical data models
▪ used by many commercial DBMS implementations (e.g. relational data models used in many
commercial systems).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • Informally, a ……….. looks like a table of values.
  • The data elements in each row represent certain facts that correspond to a real-world ……. or ……..
  • In the formal model, rows are called ………
  • In the formal model, the column header is called an ……….
A
  • relation
    -entity or relationship
  • rows are called tuples
  • attribute)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The …………of a Relation:
- is Denoted by R(A1, A2, …..An)
- R is the name of the relation
- The attributes of the relation are A1, A2, …, An

A
  • Schema (or description)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Each ………… has a domain or a set of valid values.
For example, the domain of Cust-id is 6 digit numbers.

A

attribute

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

A ………..is an ordered set of values (enclosed in angled
brackets ‘< … >’)

A

tuple

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