2022 cards Flashcards

1
Q

DDL

A

defining the database schema

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

SQL

A

Declarative/non - procedural DM.Requires a user to specify what data are needed without specifying how to get those data. Easy to learn and use.

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

entity

A

an object that exists and is distinguishable from other objects.

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

entity set

A

set of entities of the same type that share the same properties

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

PK

A

A subset of the attributes form a primary key of the entity set; i.e., uniquely identifying each member of the set

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

Do we represent entity or entity set in ER diagram?

A

Entity set

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

Relationship

A

A relationship is an association among several entities

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

Role in Relationship

A

Each occurrence of an entity set plays a “role” in the relationship. The labels “ course_id ” and “ prereq_id ” are called roles

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

Types of Attributes

A
  1. Simple and composite attributes
  2. Single-valued and multivalued attributes
  3. Derived attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Attribute Domain

A

the set of permitted values for each attribute

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

Composite attributes

A

Composite attributes allow us to divided attributes into subparts

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

Mapping cardinalities of binary relationship

A
  1. One to one
  2. One to many
  3. Many to one
  4. Many to many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Total participation

A

Total participation (indicated by double line): every entity in the entity set participates in at least one relationship in the relationship set.

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

Partial Participation

A

Partial participation: some entities may not participate in any relationship in the relationship set.

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

Weak entity set

A

A weak entity set is one whose existence is dependent on another entity, called its identifying entity. Instead of associating a primary key with a weak entity, we use the identifying entity, along with extra attributes called discriminator to uniquely identify a weak entity.

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

Dependency between weak and identifying entity

A

Every weak entity must be associated with an identifying entity; that is, the weak entity set is said to be existence dependent on the identifying entity set. The relationship associating the weak entity set with the identifying entity set is called the identifying relationship.