4. Relational Databases Flashcards

1
Q

What is the definition of a database

A

A set of interrelated, centrally coordinated data files that are stored with as little data redundancy as possible.

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

What is the goal of a database

A

Efficiently and centrally coordinated information for a related group of files

A file is a related group of records

A record is a related group of fields

A field is a specific attribute of interest for the record

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

Distinguish between a database and a file based system

A

Database definition: a set of interrelated, centrally coordinated data files that are stored with as little data redundancy as possible.
Wheres a file based system are not connected across between sales, shipping and billing departments.

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

Describe schemas

A

A schema is a description of the data elements in a database, the relationships among them, and the logical model used to organize and describe the data.

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

What are the three levels of schema

A

External-level = individual user’s view

Conceptual-level = enterprise wide view of the entire database

Internal-level = low level view, how data are stored and accessed physical

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

What are the three Data Base Management Systems (DBMS) languages

A

Data definition language (DDL), Data Manipulation Language (DML) and Data Query Language (DQL)

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

Describe data definition language (DDL)

A

DDL builds the data dictionary,
creates the database
describes logical views for each user
specifies record or field security constraints

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

Describe the data manipulation language (DML)

A

DML changes database content, including data element creations, updates, insertions and deletions

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

Describe the data query language (DQL)

A

DQL enable users to retrieve, sort and display specific data from the database.

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

Describe what a relational database is, how it organizes data

A

The relational data model represents conceptual- and external-level schemas as if data are stored in two-dimensional tables.

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

What are the reason to have a set of related tables?

A

Data stored in one large table will be redundant and inefficient. Related Tables will help solve the following problems: Update anomaly, insert anomaly and delete anomaly

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

Relational Database – external level view individual user’s view

A

External-level view represents the conceptual and internal schema as if that “data view” were truly stored in one table.

Although the external-level view appears to the user that information is in one big table, it really is a set of tables that relate to one another.

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