Chapter 4 part 2 Flashcards

1
Q

Data dictionary

A

contains information about the structure of the database

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

Data definition language (DDL)

A

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

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

Data manipulation language (DML)

A

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

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

Data query language (DQL)

A

contains powerful, easy-to-use commands that enable users to retrieve, sort, order, and display data

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

Report writer

A

simplifies report creation

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

Relational data model

A

represents conceptional- and external-level schemas as if data are stored in tables

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

A tuple

A

is row in a table that contains data about a specific occurrence of the type of entity represented by that table

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

Primary key

A

database attribute, or combination of attributes, that uniquely identifies a specific row in a table

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

Foreign key

A

an attribute that is a primary key in another table, that is used to link tables

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

Disadvantages of storing data in one table

A

update anomaly
insert anomaly
delete anomaly

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

Update anomaly

A

not correctly recorded data value. example, updating an address of a costumer means that the whole tabel has to be searched to change them one by one

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

Insert anomaly

A

Only a way on inserting a new entity is when there is an action. example, a person has to by a product so that he goes on record

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

Delete anomaly

A

deleting a row has unintended consequences. example, deleting the row of a costumer who only purchased one item means deleting all the information of that costumer

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

Requirements of a relational database

A
  1. every column in a row must be single valued
  2. primary keys cannot be null
  3. foreign keys, if not null, must have values that correspond to the value of a primary key in another table
  4. all nonkey attributes in a table must describe a characteristic of the object identified by the primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly