9. Database Systems (in practice) – 3marks Flashcards

1
Q

The three schema architecture involves the levels of:

A
  • External (end user view)
  • Conceptual (mapping)
  • Internal (how data is mapped and stored in the DB)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The three main DBMS languages used by SQL are:

A

Acronym to remember the three groups: DMC
• Data Definition Language (DDL): Provides commands to create and modify database structure and constraints.
• Data Manipulation Language (DML): Provides commands to insert, delete, update and retrieve
• Data Control Language (DCL): Provides commands to control the access of data

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

Pro’s of DBMS’s include:

A
  • Separation of data from applications
  • Push-down common functions (general-purpose systems!)
  • Separation of physical structures and logical structures
  • Relational model and theory
  • Non-procedural query language
  • Concurrency control and recovery
  • High performance query processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Cons of DBMS’s include:

A
  • The Closed-World assumption
  • A piece of software, independent of hardware platforms (for too long!)
  • A victim of its own success (extensions not well supported)
  • Limited data types
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Characteristics of database approach are:

A
  • Insulation between programs and data
  • Support of multiple views of data
  • Use of a catalog to store schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Three schema architecture was proposed as it provided two types of data independence, being:

A
  • Logical Data Independence

* Physical Data Independence

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

Describe the two types of Data Independence?

A

LOGICAL - The capacity to allow independent changes on conceptual schema without having to change external schemas or the application programs that access the database via the external schemas
PHYSICAL - Capacity to change internal schema without having to change the conceptual (or external) schemas

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

A System Catalog does what?

A

Stores database definitions (metadata) which describe the structure, type & constraints of the data

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

Semantic integrity constraints can be created, such as:

A
  • triggers (SQL CREATE TRIGGER)

* assertions (SQL CREATE ASSERTION)

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

Assertions involve:

A

• Keys, entity constraints and referential integrity are structural constraints that are managed by the DBMS

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

Triggers involve:

A
  • Like Assertions, Triggers are also stored in the database, and hence managed by the DBMS
  • However, rather than aborting an operation because of a constraint violation, the DBMS, through Triggers, can make an alternative option available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly