L9 - Entity Reation Modeling Flashcards

1
Q

What is a database?

A
  • Shared collection of logically related data (with description)
  • Designed to meet the needs of an organisation
  • Which is stored and accessed electronically from a computer system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the database approach?

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

What is a DBMS?

A

What is a DBMS (Database Management System)

Software that enables users to:

  • Define a database
  • Create a database
  • Maintain a database
  • To control access to the database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can users interact with a DBMS?

A
  • General inquiry facility to the data via Query Language
    • SQL
  • Standard User Interface
  • Users can generate their own queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What services does a DBMS provide

A
  • Preserve integrity of the data
    • Defined by constrains
  • Preserve data independence
    • Protecting users from system changes
  • Extra Utilities
    • Import/Export
    • Performance profiling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a an application of a Database Context?

A

A computer program that interacts with the database by issuing an appropriate request (SQL Statement) to the DBMS

  • Can be a CLI
  • Typically a GUI
    • Wrapped around preset queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages of the Database Approach?

A
  • Control of data redundancy
  • Data consistency
  • Easier to share data
  • Improved data independent + integrity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the disadvantages of the Database Approach?

A
  • Complex
  • Running cost of DBMS
  • Conversion cost
  • Performance
  • Higher impact of failure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the realtional model?

A
  • Replaces tree/network models
  • Basis for set-oriented data manipulation language (SQL)
  • High degree of data independence
    • Users cant make physical changes
  • Improved control of self-describing, consistency and redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are data models?

A
  • Represents the operational requirements of an organisation
  • Made up of
    • Structural part
    • Manipulative part
    • Integrity Rules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Relational Data Structure?

A

Relational data model components:

  • Relation
  • Attribute
  • Tuple
  • Domain
  • Relational Database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What the properties of realtional tables?

A
  • Distinct table names
  • Distinct column/attribute names
  • Distinct record/row tuple is distinct
  • Atomic cells
  • Column values are from the same domain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the different types of realtional keys?

A

Superkey

  • Any set of columns that uniquely identifies all records
  • Composite key has > 1 column

Candidate key

  • Minimal set of columns

Primary Key

  • Chosen candidate

Alternate Key

  • Remaining candidate

Foreign Keys

  • Represents a relationship between two tables
  • Provides controlled redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is relational integrity?

A
  • Every column is subject to domain contrints
  • Entity integrity
  • Referential integrity
  • Ensures consistency
    • Allowing minimal redundancy
  • Allows for set manipulation operations to be reliably performed on data across tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are integrity rules?

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