201 - Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does data abstraction do in a database systems?

A

It presents a logical view of data to applications

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

There are two views of data within the DBMS….

A
  1. Logical view, presented to applications

2. Physical layout on backing store as manipulated by the DBMS

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

What is data independence?

A

The ability to organise and reorganise the contents and the structure of the data

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

What is a row and column header called in the relational model?

A

Tulles and Attributes

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

What is the data type that describes the type of values that appear in each column?

A

Domain type

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

What does Atomic mean?

A

Each value in domain is indivisible

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

Data types for domains

A
  1. Characters
  2. Strings
  3. Date, Time, Timestamp
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a relation schema?

A

It’s used to describe a relation

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

What is a degree?

A

The degree of relation is the number of attributes n of its relation schema

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

Are tuples in a relation distinct or not?

A

They are distinct

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

What is a super key?

A

A subset of attributes where no two tuples in any relation state r of R can have the same combination of values for these attributes

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

What is a candidate key?

A

When in a relation schema, it has more than one key

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

What is a primary key?

A

The candidate key whose values are used to identify tuples in a relation

(Cannot be null)

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

What is a foreign key?

A

When a tiple in one relation refers to a tuple in another relation

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

Why do we need keys?

A
  1. They are used to identify tulles in a relation R
  2. They are essential elements of any relational database
  3. They are used to establish the relationships amount tables in a schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why do we use relational algebra?

A

It helps in the understanding of query execution and query optimisation

17
Q

What is relational algebra?

A

It is a basic set of relational operations to retrieve, filter and restructure relations

18
Q

What is a relation?

A

A set of tulles