data modelling Flashcards

1
Q

what is a data model?

A

collection of concepts for representing complex real-world data in an organisation ion an abstract way.
create a specific data model for a specific problem

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

what are the benefits of data modelling?

A
  • provides an abstracted idea of the problem without needing implementation
  • facilitates communication between designer and user
  • provides different views to different users
  • accurate data models is key to good design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a schema?

A

a description of a database at a logical level. lists attributes
e.g.
COMPANY( EMPLOYEE, DEPARTMENT, PROJECT, WORKS_ON)

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

what is 3 level schema architecture?

A
  1. physical level
    - storage structure of data
  2. internal/conceptual level - defines the logical structure
    - bridge between external and physical levels
  3. external level
    - tailored to be viewed by a particular category of users + hide data for security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the architecture of modelling work?

A

specific standards set by ISO where each any changes cannot affect level above
makes it easier to understand higher up for end user communication
e.g. any changes to physical model will not effect internal model

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

What are the types of database models?

A

legacy = - hierarchal model (boxes point to next box) works like a long list, must follow predefined route for navigation - no queries
relational model = table of matrix of columns and rows highly structured, tables linked via unique keys
object oriented = based on oop, no query language
document database = semi structured, no scheme needed, unique keys
key value database = works in pairs of keys and values, very fast retrieval
graph = made up of nodes and edges, quick to traverse

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

What is the ER model?

A

Entity relation model
- relation model used as design tool to make it easier to examine relational structures.
- conceptual level

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

What are the different entity types?

A

Strong/Weak (does the entity rely on another entity)

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

What are the types of relationships?

A

Degree ( binary, unary, ternary)
Participation ( optional/ mandatory)
Cardinality (0, one, many)

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

What are the types of attributes?

A

Single/multivalued
simple/composite/derived (calculated in table)
domain (list of allowed values)

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

What is the ERD?

A

Entity relationship diagram

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

What are the forms of entity relationship diagram?

A

Chens notation
Crows foot
UML

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

In chens notation what do each shape mean?

A

Rectangle = entityType
Double rectangle = weak entity type (dependant on another entity, if mother entity removed, so is it)
Oval = attribute
Underlined oval = identifying attribute (key)
double oval = multi-valued attribute
diamond = unique relationship

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

What is crows foot notation?

A

Each table lists its primary key first as PK and then has a line connecting whether it is one to one, one to many, many to one, many to many etc

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

What is UML diagram?

A

Tables of attributes with connecting lines with cardinality on
a,b where a is minimum and b is maximum
e.g. if going to many then it would be 1,n

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