IDT Flashcards

1
Q

ER Model: what is it (short)?

A

Detailed, logical representation of the data for an organization/ business

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

Main elements/ concepts in an ER model: mention the main elements and the sub elements.

A
  1. Entities:
    - entity type: collection of entities (often a table)
    - entity instance: a person, a place, object, event, etc ( often a ROW in a table)
  2. Relationships
    - relationship type: category of relationship ( corresponds to links between entity types)
    - relationship instance: link between entities ( PK, FK in related tables )
  3. Attributes
    - properties/ characteristics of an entity TYPE or relationship TYPE (a field in a table)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Business Rules: what are they and what do they do?

A
  • Statements that define or constrain some aspect fo the business
  • derived from policies, procedures, events
  • assert business structure
  • control or influence business behavior
  • automated through DBMS software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Characteristics of GOOD Business Rules: How should a business rule be?

A
  • Declarative: what, not how
  • Precise: clear
  • Atomic: one statement
  • Consistent: internally and externally
  • Expressible: structured, natural language
  • Distinct: non-redundant
  • Business-Oriented: understood by business people
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data naming: how should entities, relationships and attributes be named?

A

It is important to ER models.

The names of entities, relationships and their attributes need to be:

  • related to business and non-technical
  • meaningful
  • unique
  • readable
  • approved list of words
  • repeatable
  • written in standard syntax
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Naming Entity Types: how?

A
  • singular noun
  • specific to organization
  • ## concise, or abbreviation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Types of entities: just the name

A
  • Strong
  • Weak
  • Associative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Types of relationship degrees: just names

A
  • Unary
  • Binary
  • Ternary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Strong vs Weak entities:

A
  • Strong entities exist independently of other types and have unique identifier underlined with single line
  • weak entities depend on a strong entity and cannot exist on its own (find the owner). No unique identifier (only partial). Entity box and partial identifier have double lines.
  • Link strong entities to weak entities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Attributes: what are they and what types are there?

A

Attribute = property or characteristic of entity TYPE or relationship TYPE

types of attributes:

  • required vs optional
  • simple vs composite
  • single- valued vs multivalued
  • stored vs derived
  • identifier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Composite attribute: what is it?

A
  • an attribute that has meaningful component parts (sub-attributes)
    ex: Composite attribute = Emp Address

Street address, city, state, postal code (all of these are component attributes/ sub attributes)

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

Multivalued attributes: explain

A
  • uses {}
  • an attribute that can have more than one value

ex: an employee can have more than one {Skill}

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

Derived attributes: explain

A
  • values are calculated from related attribute values (not physically stored in the db)
  • [Years Employed] -> is calculated based on when you got hired and current date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Identifiers (keys)

A
  • single or combination of attributes that uniquely identify individual instances of an entity type
  • can be simple or composite
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Candidate identifier: what is?

A
  • an attribute that could be an identifier (satisfies requirements)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Criteria for identifiers: how to chose identifiers?

A
  • chose identifiers that will NOT change in value, and will NOT be NULL.
  • select constant and unique attributes
17
Q

Criteria for defining attributes:

A
  • state what the attribute is
  • state what is and what isnt included in the attribute value
  • include alias in documentation
  • specify if required or optional
  • state if attribute value can change once set
  • state min and max number of occurrences allowed
  • indicate relationships with other attributes