midterm_practice Flashcards

1
Q

Select the options which are True about weak entities.
1. Weak entities can’t have subclasses.
2. Weak entities can be identified uniquely by considering the primary key of another owner entity, and its own partial key
3. The relationship type that relates a weak entity to its owner is called the partial relationship.
4. in relation to an ER diagram, a weak entity is represented with double lines.

A

2&4

reason:
1. weak entities can have subclasses(not common, but possible)

  1. A weak entity type always has a total participation constraint with respect to its idenfitying relationship
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A delivery system for an ice cream factory records every box produced and shipped to
different destinations. Each box is identified by the type of ice cream stored and label number. Each box has the type of box, volume of ice cream, time, and date packaged recorded. The date consists of the day, month and year. Every box type has known dimensions. Before transportation, all boxes must be approved by a supervisor with a name, contact details, date employed and unique identification number. Only one supervisor is required to oversee and send off boxes. The unique transport ticket code, expected end location and arrival date is recorded.

Q. Choose False option(s)

A) The cardinality of the relationship between supervisors to boxes is 1-N.
B) The boxes are in total participation to its relationship with supervisors.
C) The type of box can be derived by its measured dimensions.
D) There is a composite key attribute for one of the entities.
E) The label number does not have to be unique for every box.

A

E

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

explain “Semantic Integrity Constraint”

A

Constraints that cannot be directly expressed in the schemas of the data model referred to as semantic constraints or business rules.

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

explain “key constraint”

A

it happens when you try to insert that is not unique(already exist in the database)

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

explain “Referential integrity constraint”

A

it requires that a FK must match a primary key in another table or be null.

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

explain “domain constraint”

A

it specifies that within a database, each attribute must de declared upon a defined domain(same data types).

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