01 Database Overview Flashcards

1
Q

What is a database

A
  1. an organised collection of information
  2. can be simple records, text, excel
  3. can be any size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a database management system DBMS

A
  1. professional
    - standardised protocols and frameworks
    - eg. mySQL
  2. abstraction
    - data to interface to user
    - physical layer: how data is stored in disk
    - logical: communication protocol
    - view layer: user perform queries
    - concurrent access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DBMS advantages

A
  1. data concurrency
  2. data searching
  3. data redundancy
  4. data inconsistency
  5. data integrity
  6. data sharing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

stages of database design

A
  1. requirement analysis
  2. conceptual database design
  3. logical database design
  4. refine schemas
  5. physical database design
  6. application and security design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

requirement analysis

A
  1. bidirectional
  2. clients tell what they want
  3. what data to store
  4. what kind of application
  5. what operations are needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

conceptual database design

A
  1. given user requirements, create ER diagrams

2. create relations for all entities

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

logical database design

A
  1. determine DBMS
  2. finalise ER diagrams
  3. decide on columns and rows
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

schema refinement

A
  1. analyse relations
  2. identify potential problems
  3. refine
  4. normalisation: reduce data redundancy and improve integrity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

physical database design

A
  1. further refinement
  2. ensure meets performance criteria
  3. build index on tables, cluster tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

application and security design

A
  1. identify what is accessible/ inaccessible

2. enforce rules

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

Data model main components

A
  1. data
  2. relationship
  3. constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is a super key

A

primary key + candidate key

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

what is a candidate key

A

potential primary keys

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

what are integrity constraints

A

database is legal if ICS holds for all data

eg. reject insertion of student with non existent student ID

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