inf sys Flashcards

1
Q

multivalued attribute

A

e.g. skills of person since football, hockey = 2 things you you can have multiple things in one attribute skills

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

what are the different cardinality ratios

A

1:N M:N (an employee

can work on several projects and a project can have several employees) 1:1 (one manager 1 department)

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

what are the participation constraints

A

total and partial participation (2 lines vs 1 line)

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

if you have a relation attribute, you can move it to the entities with the most relations to one of the other entity.

A

yup

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

For M:N relationship types, some attributes may be determined by the combination of
participating entities in a relationship instance, not by any single entity. Such attributes must be specified as:

A

relationship attributes

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

weak entity types are:

A

antities without a key attribute, relying on another entity for its identifier

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

A weak entity type normally has a partial key, which is the set of attributes that can
uniquely identify weak entities that are related to the same owner entity.

A

yup

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

weak entities in ER hebben

A

dubbele lijnen

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

composite attributes

A

consist out of multiple things

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

Derived attribute

A

Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database.

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

what is a key?

A

an attribute / attributes that uniquely identify an entity

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

what is the difference between ER and EER? (the enhanced)

A

subclasses, superclasses and inheritance specialisation is adding subclasses whereas generalization is using superclasses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. How do we define the members of a subclass?
A

 Predicate-defined or condition-defined: based on some
predicate/attribute value.
 Attribute-defined: based on an attribute of a superclass
 User-defined: membership is defined by the user on an
entity-by-entity basis

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

How many subclasses may an entity belong to?

A

 Disjointness Constraint - disjouint or overlapping

 Completeness Constraint

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

specializations can thus be defined by

A

an attribute, meaning that based on that attribute, the entity will be specifying what subclass it will become.

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

what is the hierarchy constraint?

A

each subclass can maximally be part of one superclasse (meaning the graph has a tree structure). or it doesn’t have this constraint and then the graph has lattices.

17
Q

what are categories / union types?

A

see a single super/subclass relation that can have different types. Basically it is a subclass the might inherit from any of its super classes (literally a union) since the superclasses are usually of different types. for instance OWNER can be a bank or a person.

18
Q

give the relational algebra functions

A
sigma(R) = select from R where 
pi(R) = select attributes name1 and nam2 from R -> removes duplicate tuples
rho s  (R) renames R to s and the attributes to name1 and name2 (rename the attributes of a relation or the relation's name or both).
19
Q

what are the relational algebra operations from set theory?

A

UNION (  ), INTERSECTION (  ), DIFFERENCE (or MINUS, – )

and CARTESIAN PRODUCT ( x )

20
Q

what is the difference between inner join, left join and cross join

A

bij inner join match je de eerst genoemde select met de join. dus de table zijn eerste kolom heeft de eerst genoemde select. bij left join clause selects data starting from the left table (artists) and matching rows in the right table (albums) based on the join condition dus hier selecteer je de albums ipv de artiesten. als je er een where aan toevoegd dan kan je bijvoorbeeld selecteren alle artiesten die geen album hebben. cross join just creates the cartesian product.