Test 1 Flashcards

1
Q

What is an attribute?

A

They are a name and a data type for data

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

database is a tree-like hierarchy, folders with subfolders

A

Hierarchical

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

database is one big hashmap

A

Key-Value Pair

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

What is the minimum number of attributes in a relation?

A

0 called an anti table

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

A relation can be pictured as a…

A

table

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

a set of attributes whose values with always uniquely identify a tuple in the relation

A

candidate key

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

constraints to prevent inconsistencies

A

Data Integrity

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

defines what sort of data is stored

A

Data Definition Language

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

a super-set of a candidate key

A

super-key

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

The columns of a table are called …

A

attributes

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

a set of possible values

A

domain

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

What are the candidate keys for a tuple with no attributes?

A

The empty set

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

Every true piece of information is in the database

No false data is in the database

Using null violates the closed universe assumption

Null represents missing information

A

Closed universe assumption

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

What is the maximum number of attributes in a relation?

A

No maximum

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

What is a domain

A

A set of values and a data type

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

accessing and processing data

A

Data Manipulation Language

17
Q

most common form of database

A

Relational

18
Q

prevents unauthorized access or modification of data

A

Data Security

19
Q

Each attributes has an associated

A

domain

20
Q

DBMS provide..

A

Data Definition Language,
Data Manipulation Language,
Data Security,
Data Integrity

21
Q

Tables are organized into

A

schemas

22
Q

a seperation of how data is physically stored and organized from how data is logically accessed

A

Data Abstraction

23
Q

A relation with 0 attributes, how many tuples can there be in that relation?

A

1

24
Q

The rows of a table are called

A

tuples

25
Q

Who invited the relational model?

A

Edgar Codd

26
Q

used for foreign keys in other relations

A

primary key

27
Q

database is composed of well-defined relations/tables that reference each other

A

Relational

28
Q

The operation where we reduce a relation full of data to those rupees in that meet a particular criteria

A

Selection

29
Q

The operation where a relation is reduced to a specified set of its attributes

A

Projection

30
Q

Combines two relations by combining their columns, then associations the data in every possible combination

A

Cross join(Cartesian product)

31
Q

Combining products and selection

A

Inner join

32
Q

A join that selects for equality on columns that have the same name on both relations and then applies a projection to eliminate duplication

A

Natural join

33
Q

A relation with all the tuples of both relations

A

Union

34
Q

A relation containing those tuples which can be found in both relations

A

Intersection

35
Q

A relation with all the tuples in a except those that are also in b

A

Difference