relational db model Flashcards

(16 cards)

1
Q

types of DB models

A

hierarchical, network, relational

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

hierarchical DB model

A

tree-based approach based on parent-child relationships. each record is linked to all its child records (customer -> orders -> items)

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

network DB model

A

improves hierarchical, allows records to have more than one parent, can access data from multiple points

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

table

A

“relation”
matrix of intersecting rows and columns

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

entity

A

object/concept about which data is collected and stored

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

entity instance

A

row in relational table

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

attributes

A

characteristics of entity (columns)

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

relationships

A

connections amongst data, used to connect tables

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

structured query language used for

A

“what” without “how”

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

t/f: questions do not need to be known at design time

A

true

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

database

A

set of relations

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

relation

A

set of tuples (table)

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

tuple

A

row of a relation, each cell consists of specific values for particular variable/attribute

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

primary key

A

cell value that uniquely identifies a tuple

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

foreign key

A

cell value which is exactly equal to the primary key value in some other relation

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

properties of relations

A
  • every relation must have a distinct name
  • each cell of relation is atomic
  • each attribute must have distinct name
  • values of any attribute must be from same domain
  • no duplicate tuples
  • particular tuple can have only one value for an attribute
  • two different tuples can have same value for an attribute
  • order of tuples has no significance
  • order of attributes has no significance